Running ‘testthat.R’ [121s/217s]
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 2 | WARN 0 | SKIP 46 | PASS 224 ]
  
  ══ Skipped tests (46) ══════════════════════════════════════════════════════════
  • .Platform$OS.type == "windows" is not TRUE (1):
    'test-estimate_predicted.R:58:3'
  • On CRAN (38): '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_bookexamples.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_grouplevel.R:54:3', 'test-estimate_grouplevel.R:72:3',
    'test-estimate_grouplevel.R:93:3', 'test-estimate_grouplevel.R:123:3',
    '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:129:1',
    'test-g_computation.R:1:1', 'test-get_marginaltrends.R:1:1',
    'test-glmmTMB.R:1:1', 'test-joint_test.R:1:1', 'test-keep_iterations.R:1:1',
    'test-maihda.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 (7): 'test-plot-facet.R:1:1', 'test-plot-flexible_numeric.R:1:1',
    'test-plot-ordinal.R:1:1', 'test-plot-slopes.R:1:1', 'test-plot.R:1:1',
    'test-print.R:1:1', 'test-scoping_issues.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-attributes_estimatefun.R:93:3'): attributes_means, slopes ────
  Names of attributes(estim) ('names', 'class', 'row.names', 'trend', 'p_adjust', 'transform', 'coef_name', 'slope', 'ci', 'model_info', 'keep_iterations', 'vcov', 'table_title', 'table_footer', 'model', 'response') don't match 'names', 'class', 'row.names', 'trend', 'comparison', 'p_adjust', 'transform', 'coef_name', 'slope', 'ci', 'model_info', 'keep_iterations', 'vcov', 'table_title', 'table_footer', 'model', 'response'
  ── Error ('test-estimate_slopes.R:81:3'): estimate_slopes, johnson-neyman p-adjust ──
  Error: The entered object is not a model object.
  Backtrace:
       ▆
    1. └─modelbased::estimate_slopes(...) at test-estimate_slopes.R:81:3
    2.   └─modelbased::get_marginaltrends(...)
    3.     └─modelbased:::.p_adjust(model, estimated, p_adjust, verbose, ...)
    4.       └─modelbased:::.p_adjust_esarey(params)
    5.         ├─insight::get_df(model, type = "wald")
    6.         └─insight:::get_df.default(model, type = "wald")
    7.           ├─insight::find_statistic(x)
    8.           └─insight:::find_statistic.default(x)
    9.             └─insight::format_error("The entered object is not a model object.")
   10.               └─insight::format_alert(..., type = "error")
  
  [ FAIL 2 | WARN 0 | SKIP 46 | PASS 224 ]
  Error: Test failures
  Execution halted