* using log directory 'd:/RCompile/CRANincoming/R-devel/modelbased.Rcheck' * using R Under development (unstable) (2025-01-27 r87654 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'modelbased/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'modelbased' version '0.9.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [10s] NOTE Maintainer: 'Dominique Makowski ' Unknown, possibly misspelled, fields in DESCRIPTION: 'Remotes' * 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 'modelbased' can be installed ... OK * checking installed package size ... OK * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... OK * checking Rd files ... 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 ... 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 ... [13s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [16s] ERROR Running 'testthat.R' [16s] 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? > # > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > library(testthat) > library(modelbased) > > test_check("modelbased") Starting 2 test processes [ FAIL 5 | WARN 0 | SKIP 19 | PASS 157 ] ══ Skipped tests (19) ══════════════════════════════════════════════════════════ • On CRAN (19): 'test-brms-marginaleffects.R:1:1', 'test-brms.R:1:1', 'test-estimate_contrasts.R:1:1', 'test-estimate_means.R:1:1', 'test-estimate_means_counterfactuals.R:1:1', 'test-estimate_means_mixed.R:1:1', 'test-get_marginaltrends.R:1:1', 'test-glmmTMB.R:1:1', 'test-ordinal.R:1:1', 'test-plot-facet.R:7:1', 'test-plot.R:7:1', 'test-predict-dpar.R:1:1', 'test-print.R:14:3', 'test-print.R:26:3', 'test-print.R:37:3', 'test-print.R:50:3', 'test-print.R:65:3', 'test-print.R:92:3', 'test-print.R:106:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-attributes_estimatefun.R:42:3'): attributes_means, contrasts ─── Error in `sanitize_hypothesis_formula(hypothesis)`: Assertion on 'Right-hand side of `hypothesis` formula' failed: Must be element of set {'reference','sequential','meandev'}, but is 'pairwise'. Backtrace: ▆ 1. ├─base::suppressMessages(estimate_contrasts(model, "Species", backend = "marginaleffects")) at test-attributes_estimatefun.R:42:3 2. │ └─base::withCallingHandlers(...) 3. └─modelbased::estimate_contrasts(model, "Species", backend = "marginaleffects") 4. └─modelbased::get_marginalcontrasts(...) 5. └─modelbased::estimate_means(...) 6. └─modelbased::get_marginalmeans(...) 7. ├─base::suppressWarnings(...) 8. │ └─base::withCallingHandlers(...) 9. ├─base::do.call(marginaleffects::avg_predictions, fun_args) 10. └─marginaleffects (local) ``(...) 11. └─marginaleffects::predictions(...) 12. └─marginaleffects:::sanitize_hypothesis(hypothesis, ...) 13. └─marginaleffects:::sanitize_hypothesis_formula(hypothesis) 14. └─checkmate::assert_choice(...) 15. └─checkmate::makeAssertion(x, res, .var.name, add) 16. └─checkmate:::mstop(...) ── Failure ('test-attributes_estimatefun.R:68:3'): attributes_means, slopes ──── Names of attributes(estim) ('names', 'class', 'row.names', 'trend', 'comparison', 'coef_name', 'table_title', 'table_footer', 'model', 'response', 'ci') don't match 'names', 'class', 'row.names', 'trend', 'comparison', 'coef_name', 'slope', 'table_title', 'table_footer', 'model', 'response', 'ci' ── Error ('test-mgcv.R:22:3'): estimate_contrasts - mgcv gam ─────────────────── Error in `sanitize_hypothesis_formula(hypothesis)`: Assertion on 'Right-hand side of `hypothesis` formula' failed: Must be element of set {'reference','sequential','meandev'}, but is 'pairwise'. Backtrace: ▆ 1. ├─base::suppressMessages(estimate_contrasts(model, backend = "marginaleffects")) at test-mgcv.R:22:3 2. │ └─base::withCallingHandlers(...) 3. └─modelbased::estimate_contrasts(model, backend = "marginaleffects") 4. └─modelbased::get_marginalcontrasts(...) 5. └─modelbased::estimate_means(...) 6. └─modelbased::get_marginalmeans(...) 7. ├─base::suppressWarnings(...) 8. │ └─base::withCallingHandlers(...) 9. ├─base::do.call(marginaleffects::avg_predictions, fun_args) 10. └─marginaleffects (local) ``(...) 11. └─marginaleffects::predictions(...) 12. └─marginaleffects:::sanitize_hypothesis(hypothesis, ...) 13. └─marginaleffects:::sanitize_hypothesis_formula(hypothesis) 14. └─checkmate::assert_choice(...) 15. └─checkmate::makeAssertion(x, res, .var.name, add) 16. └─checkmate:::mstop(...) ── Error ('test-print.R:78:5'): estimate_contrasts - by with special character ── Error in `sanitize_hypothesis_formula(hypothesis)`: Assertion on 'Right-hand side of `hypothesis` formula' failed: Must be element of set {'reference','sequential','meandev'}, but is 'pairwise'. Backtrace: ▆ 1. └─testthat::expect_snapshot(...) at test-print.R:78:5 2. └─rlang::cnd_signal(state$error) ── Error ('test-verbose.R:11:3'): verbose ────────────────────────────────────── Error in `sanitize_hypothesis_formula(hypothesis)`: Assertion on 'Right-hand side of `hypothesis` formula' failed: Must be element of set {'reference','sequential','meandev'}, but is 'pairwise'. Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-verbose.R:11:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─modelbased::estimate_contrasts(...) 10. └─modelbased::get_marginalcontrasts(...) 11. └─modelbased::estimate_means(...) 12. └─modelbased::get_marginalmeans(...) 13. ├─base::suppressWarnings(...) 14. │ └─base::withCallingHandlers(...) 15. ├─base::do.call(marginaleffects::avg_predictions, fun_args) 16. └─marginaleffects (local) ``(...) 17. └─marginaleffects::predictions(...) 18. └─marginaleffects:::sanitize_hypothesis(hypothesis, ...) 19. └─marginaleffects:::sanitize_hypothesis_formula(hypothesis) 20. └─checkmate::assert_choice(...) 21. └─checkmate::makeAssertion(x, res, .var.name, add) 22. └─checkmate:::mstop(...) [ FAIL 5 | WARN 0 | SKIP 19 | PASS 157 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE