Running ‘testthat.R’ [97s/85s]
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 1 | WARN 11 | SKIP 39 | PASS 189 ]
  
  ══ Skipped tests (39) ══════════════════════════════════════════════════════════
  • .Platform$OS.type == "windows" is not TRUE (1):
    'test-estimate_predicted.R:58:3'
  • On CRAN (31): 'test-backtransform_invlink.R:1:1', 'test-betareg.R:1:1',
    'test-bias_correction.R:1:1', 'test-brms-marginaleffects.R:1:1',
    'test-brms.R:1:1', 'test-estimate_contrasts-average.R:1:1',
    'test-estimate_contrasts.R:1:1', 'test-estimate_contrasts_effectsize.R:1:1',
    'test-estimate_contrasts_methods.R:1:1', 'test-estimate_filter.R:1:1',
    'test-estimate_means-average.R:1:1', 'test-estimate_means.R:1:1',
    'test-estimate_means_ci.R:1:1', 'test-estimate_means_counterfactuals.R:1:1',
    'test-estimate_means_dotargs.R:1:1',
    'test-estimate_means_marginalization.R:1:1',
    'test-estimate_means_mixed.R:1:1', 'test-estimate_slopes.R:97:1',
    'test-g_computation.R:1:1', 'test-get_marginaltrends.R:1:1',
    'test-glmmTMB.R:1:1', 'test-keep_iterations.R:1:1', 'test-mice.R:1:1',
    'test-ordinal.R:1:1', 'test-plot-grouplevel.R:1:1',
    'test-predict-dpar.R:1:1', 'test-standardize.R:1:1',
    'test-summary_estimate_slopes.R:3:1', 'test-transform_response.R:16:3',
    'test-vcov.R:1:1', 'test-zeroinfl.R:1:1'
  • On Linux (6): 'test-plot-facet.R:1:1', 'test-plot-flexible_numeric.R:1:1',
    'test-plot-ordinal.R:1:1', 'test-plot.R:1:1', 'test-print.R:1:1',
    'test-scoping_issues.R:1:1'
  • utils::packageVersion("insight") <= "1.1.0" is TRUE (1):
    'test-estimate_grouplevel.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-estimate_predicted.R:206:3'): estimate_expectation - predicting RE works ──
  out$Predicted (`actual`) not equal to c(...) (`expected`).
  
    `actual`: 12.2617 12.0693 11.1560 11.6318 11.1657 10.3811 11.1074 11.0749
  `expected`: 12.2064 12.0631 11.2071 11.6286 11.2327 10.5839 11.2085 11.1229
  
  [ FAIL 1 | WARN 11 | SKIP 39 | PASS 189 ]
  Error: Test failures
  Execution halted