- using R Under development (unstable) (2026-05-31 r90090)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 22.1.6 (1)
Debian flang version 22.1.6 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-06-01 18:31:07 UTC
- checking for file ‘RMeDPower2/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘RMeDPower2’ version ‘1.0.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘RMeDPower2’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/6s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/5s] OK
- checking loading without being on the library search path ... [5s/6s] 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 ... [26s/33s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [0s/0s] 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 ... [5s/7s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [175s/217s] ERROR
Running ‘testthat.R’ [175s/216s]
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 3 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 <simpleError> 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 ... [131s/161s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR