CRAN Package Check Results for Package RMeDPower2

Last updated on 2026-06-02 09:54:09 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.1 OK
r-devel-linux-x86_64-debian-gcc 1.0.1 11.74 293.90 305.64 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.1 30.00 741.58 771.58 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.1 30.00 704.31 734.31 ERROR
r-devel-windows-x86_64 1.0.1 21.00 390.00 411.00 OK
r-patched-linux-x86_64 1.0.1 16.70 415.79 432.49 OK
r-release-linux-x86_64 1.0.1 13.71 414.82 428.53 OK
r-release-macos-arm64 1.0.1 4.00 98.00 102.00 OK
r-release-macos-x86_64 1.0.1 11.00 237.00 248.00 OK
r-release-windows-x86_64 1.0.1 22.00 385.00 407.00 OK
r-oldrel-macos-arm64 1.0.1 4.00 99.00 103.00 OK
r-oldrel-macos-x86_64 1.0.1 11.00 218.00 229.00 OK
r-oldrel-windows-x86_64 1.0.1 27.00 530.00 557.00 OK

Check Details

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [108s/134s] 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 <simpleError> with message: non-numeric argument to mathematical function [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [5m/13m] 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 10 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [281s/421s] 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 7 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 Flavor: r-devel-linux-x86_64-fedora-gcc