* using log directory 'd:/Rcompile/CRANpkg/local/4.6/RMeDPower2.Rcheck' * using R version 4.6.0 (2026-04-24 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-06-02 05:52:45 UTC * checking for file 'RMeDPower2/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RMeDPower2' version '1.0.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 'RMeDPower2' can be installed ... OK * checking installed package size ... INFO installed size is 8.4Mb sub-directories of 1Mb or more: doc 4.8Mb figures 2.6Mb * 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 ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] 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 ... [13s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [6s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [139s] ERROR Running 'testthat.R' [138s] Running the tests in 'tests/testthat.R' failed. Complete output: > # Load necessary libraries > library(testthat) > library(RMeDPower2) > > # Set up testing environment > options(warn = -1) # Suppress warnings during testing > > test_check("RMeDPower2") Saving _problems/test-model-building-63.R Power for predictor 'condition_column', (95% confidence interval): 100.0% (69.15, 100.0) Test: Likelihood ratio Based on 10 simulations, (0 errors, 1 warning, 9 messages) Time elapsed: 0 h 0 m 2 s nb: result might be an observed power calculation Saving _problems/test-utilities-155.R [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-model-building.R:61:3'): diagnoseDataModel handles non-normal distributions ── Error in `log(total_column)`: non-numeric argument to mathematical function Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-model-building.R:61:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::suppressMessages(...) 4. │ └─base::withCallingHandlers(...) 5. └─RMeDPower2::diagnoseDataModel(...) 6. └─RMeDPower2:::transform_data(...) 7. └─RMeDPower2:::generate_qc_plots(...) 8. └─DHARMa::simulateResiduals(lms[[1]], plot = F) 9. ├─DHARMa::getSimulations(...) 10. └─DHARMa:::getSimulations.merMod(...) 11. └─DHARMa:::getSimulations.default(...) 12. ├─stats::simulate(object, nsim = nsim, ...) 13. ├─lme4:::simulate.merMod(object, nsim = nsim, ...) 14. │ └─base::eval(mc, parent.frame(1L)) 15. │ └─base::eval(mc, parent.frame(1L)) 16. └─lme4::.simulateFun(object = object, nsim = nsim, re.form = ..1) 17. ├─stats::predict(...) 18. └─lme4:::predict.merMod(...) 19. └─lme4::mkNewReTrms(...) 20. ├─stats::model.frame(...) 21. └─stats::model.frame.default(...) 22. └─base::eval(predvars, data, env) 23. └─base::eval(predvars, data, env) 24. └─stats::offset(log(total_column)) ── Failure ('test-utilities.R:153:3'): diagnoseDataModel handles different model types ── Expected `suppressWarnings(...)` not to throw any errors. Actually got a with message: non-numeric argument to mathematical function [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [120s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR