Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggeffects)
  > test_check("ggeffects")
  [ FAIL 1 | WARN 0 | SKIP 114 | PASS 12 ]
  
  ══ Skipped tests (114) ═════════════════════════════════════════════════════════
  • On CRAN (46): 'test-MCMCglmm.R:1:1', 'test-MixMod.R:1:1',
    'test-averaging.R:1:1', 'test-avg_predictions.R:1:1',
    'test-backtransform_response.R:1:1', 'test-bias_correction.R:1:1',
    'test-brms-categ-cum.R:1:1', 'test-brms-monotonic.R:1:1',
    'test-brms-ppd.R:1:1', 'test-brms-trial.R:1:1', 'test-clean_vars.R:1:1',
    'test-clm.R:1:1', 'test-clm2.R:1:1', 'test-clmm.R:1:1',
    'test-condition.R:1:1', 'test-correct_se_sorting.R:1:1',
    'test-decimals.R:1:1', 'test-fixest.R:1:1', 'test-focal_only_random.R:1:1',
    'test-format.R:1:1', 'test-gamlss.R:1:1', 'test-gamm4.R:1:1',
    'test-glmmTMB.R:1:1', 'test-interval_re.R:1:1', 'test-ivreg.R:1:1',
    'test-johnson_neyman.R:1:1', 'test-lmer.R:1:1', 'test-mgcv.R:1:1',
    'test-plot-ordinal-latent.R:1:1', 'test-plot-show_data.R:1:1',
    'test-plot.R:1:1', 'test-pool_comparisons.R:1:1', 'test-print.R:1:1',
    'test-print_digits.R:1:1', 'test-print_md.R:1:1',
    'test-print_zero_inflation.R:1:1', 'test-rstanarm-ppd.R:1:1',
    'test-rstanarm.R:1:1', 'test-sdmTMB.R:1:1', 'test-simulate.R:1:1',
    'test-test_predictions-formula.R:1:1', 'test-test_predictions-margin.R:1:1',
    'test-test_predictions-mixed.R:1:1', 'test-vcov.R:1:1', 'test-vglm.R:1:1',
    'test-zi_prob.R:1:1'
  • On Mac (68): 'test-Gam2.R:1:1', 'test-add_data_missings.R:1:1',
    'test-afex.R:1:1', 'test-as_data_frame.R:1:1', 'test-betareg.R:1:1',
    'test-brglm.R:1:1', 'test-check_vars.R:1:1', 'test-ci_backticks-names.R:1:1',
    'test-contrasts.R:1:1', 'test-contrasts2.R:1:1', 'test-contrasts3.R:1:1',
    'test-coxph.R:1:1', 'test-data_grid.R:1:1', 'test-emmeans_factor_char.R:1:1',
    'test-extract_values.R:1:1', 'test-focal_character.R:1:1', 'test-gee.R:1:1',
    'test-geeglm.R:1:1', 'test-get_titles.R:1:1', 'test-glm.R:1:1',
    'test-glmer.R:1:1', 'test-glmrob_base.R:1:1', 'test-gls.R:1:1',
    'test-linear-models.R:1:1', 'test-list_terms.R:1:1', 'test-lmrob_base.R:1:1',
    'test-logistf.R:1:1', 'test-logitr.R:1:1', 'test-lrm.R:1:1',
    'test-mclogit.R:1:1', 'test-mlogit.R:1:1', 'test-negbin.R:1:1',
    'test-nestedLogit.R:1:1', 'test-nlme.R:1:1', 'test-offset.R:1:1',
    'test-offset_zeroinfl.R:1:1', 'test-on-the-fly-factor.R:1:1',
    'test-ordinal.R:1:1', 'test-orm.R:1:1', 'test-parsnip.R:1:1',
    'test-percentile_at_values.R:1:1', 'test-plm.R:1:1',
    'test-plot-from-vignettes.R:1:1', 'test-plot-survival.R:1:1',
    'test-poisson.R:1:1', 'test-polr.R:1:1', 'test-poly-zeroinf.R:1:1',
    'test-pool_predictions.R:1:1', 'test-prediction_interval.R:1:1',
    'test-print_subsets.R:1:1', 'test-print_test_predictions-ordinal.R:1:1',
    'test-print_test_predictions.R:1:1', 'test-raw_data.R:1:1',
    'test-resid_over_grid.R:1:1', 'test-rq.R:1:1', 'test-scoping.R:1:1',
    'test-speedglm.R:1:1', 'test-splines.R:1:1', 'test-survey.R:1:1',
    'test-survreg.R:1:1', 'test-svyglmnb.R:1:1',
    'test-test_predictions_emmeans.R:1:1',
    'test-test_predictions_ggeffects.R:1:1', 'test-tibble.R:1:1',
    'test-tobit.R:1:1', 'test-typical.R:1:1', 'test-vgam.R:1:1',
    'test-zeroinfl.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ggaverage.R:25:3'): ggaverage works with condition ─────────────
  Error in `if (adjust %in% c("bh", "by")) adjust = toupper(adjust)`: argument is of length zero
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(moff, c("x2", "offset_1 = 1")) at test-ggaverage.R:25:3
    2. └─ggeffects:::test_predictions.default(moff, c("x2", "offset_1 = 1"))
    3.   └─modelbased::estimate_contrasts(...)
    4.     ├─base::as.data.frame(...)
    5.     ├─base::merge(...)
    6.     ├─base::merge.data.frame(...)
    7.     │ ├─base::nrow(y <- as.data.frame(y))
    8.     │ └─base::as.data.frame(y)
    9.     ├─stats::confint(estimated, level = ci, adjust = p_adjust)
   10.     └─emmeans:::confint.emmGrid(estimated, level = ci, adjust = p_adjust)
   11.       ├─base::summary(...)
   12.       └─emmeans:::summary.emmGrid(...)
  
  [ FAIL 1 | WARN 0 | SKIP 114 | PASS 12 ]
  Error: Test failures
  Execution halted