R Under development (unstable) (2025-01-27 r87654 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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