* using log directory 'd:/Rcompile/CRANpkg/local/4.5/clarify.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'clarify/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'clarify' version '0.2.1' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'clarify' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [8s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [18s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [51s] ERROR Running 'testthat.R' [51s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(clarify) > > test_check("clarify") [ FAIL 3 | WARN 1 | SKIP 7 | PASS 4759 ] ══ Skipped tests (7) ═══════════════════════════════════════════════════════════ • !file.exists(test_path("fixtures", "mimira.rds")) is TRUE (1): 'test-misim.R:124:3' • 'estimatr' has problems with model.frame.iv_robust(), which causes an error with insight::get_data(). (1): 'test-sim_ame.R:594:3' • On CRAN (4): 'test-sim.R:659:3', 'test-sim.R:729:3', 'test-sim_ame.R:671:3', 'test-sim_ame.R:750:3' • predict() is bugged for glmRob() (1): 'test-sim_ame.R:1390:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-sim.R:231:3'): sim() works with betareg::betareg() ─────────── colnames(s$sim.coefs) (`actual`) not equal to c(...) (`expected`). actual | expected [5] "racehispan" | "racehispan" [5] [6] "racewhite" | "racewhite" [6] [7] "re74" | "re74" [7] [8] "(Intercept)" - "(phi)_(Intercept)" [8] [9] "treat" - "(phi)_treat" [9] [10] "age" - "(phi)_age" [10] ── Error ('test-sim_ame.R:317:3'): sim_ame() works with MASS::polr() ─────────── Error in `sim_ame(s, "treat", contrast = "diff", type = "mean", verbose = FALSE)`: Not all units received a predicted value, suggesting a bug. Backtrace: ▆ 1. └─clarify::sim_ame(...) at test-sim_ame.R:317:3 2. └─clarify:::.err("not all units received a predicted value, suggesting a bug") 3. └─chk::err(..., call = pkg_caller_call(start = 2)) 4. └─rlang::abort(msg, class = class, !!!args[named], call = call) ── Error ('test-sim_ame.R:369:3'): sim_ame() works with betareg::betareg() ───── Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error: Predicted values could not be extracted from the model. Backtrace: ▆ 1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:369:3 2. └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl) 3. └─clarify:::.err(...) 4. └─chk::err(..., call = pkg_caller_call(start = 2)) 5. └─rlang::abort(msg, class = class, !!!args[named], call = call) [ FAIL 3 | WARN 1 | SKIP 7 | PASS 4759 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [200s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR