* using log directory ‘/srv/hornik/tmp/CRAN_pretest/modelbased.Rcheck’ * using R Under development (unstable) (2025-01-27 r87654) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.6 (1+b1) Debian flang-new version 19.1.6 (1+b1) * running under: Debian GNU/Linux trixie/sid * 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 ... [5s/8s] 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 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 ‘modelbased’ can be installed ... [2s/2s] 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 ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] OK * checking whether startup messages can be suppressed ... [0s/0s] 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 ... [5s/5s] 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 ... [12s/10s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [26s/12s] ERROR Running ‘testthat.R’ [26s/11s] 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 4 | WARN 0 | SKIP 14 | PASS 155 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • .Platform$OS.type == "windows" is not TRUE (1): 'test-estimate_predicted.R:56:3' • On CRAN (10): '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-predict-dpar.R:1:1' • On Linux (3): 'test-plot-facet.R:1:1', 'test-plot.R:1:1', 'test-print.R:1:1' ══ 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-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 4 | WARN 0 | SKIP 14 | PASS 155 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [1s/1s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 NOTE