Running ‘testthat.R’ [234s/440s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggeffects)
  > test_check("ggeffects")
  You are calculating adjusted predictions on the population-level (i.e.
    `type = "fixed"`) for a *generalized* linear mixed model.
    This may produce biased estimates due to Jensen's inequality. Consider
    setting `bias_correction = TRUE` to correct for this bias.
    See also the documentation of the `bias_correction` argument.
  
  Not all rows are shown in the output. Use `print(..., n = Inf)` to show
    all rows.
  
  Not all rows are shown in the output. Use `print(..., n = Inf)` to show
    all rows.
  Running model...
  Done!
  Some of the focal terms are of type `character`. This may lead to
    unexpected results. It is recommended to convert these variables to
    factors before fitting the model.
    The following variables are of type character: `brand`
  Some of the focal terms are of type `character`. This may lead to
    unexpected results. It is recommended to convert these variables to
    factors before fitting the model.
    The following variables are of type character: `brand`
  Some of the focal terms are of type `character`. This may lead to
    unexpected results. It is recommended to convert these variables to
    factors before fitting the model.
    The following variables are of type character: `brand`
  
  Iteration 1 - deviance = 39.74973 - criterion = 0.8590917
  Iteration 2 - deviance = 10.50328 - criterion = 2.758244
  Iteration 3 - deviance = 9.231325 - criterion = 0.1363107
  Iteration 4 - deviance = 9.227742 - criterion = 0.0003840654
  Iteration 5 - deviance = 9.227742 - criterion = 3.446463e-09
  converged
  Data were 'prettified'. Consider using `terms="price [all]"` to get
    smooth plots.
  NOTE: Results may be misleading due to involvement in interactions
  NOTE: Results may be misleading due to involvement in interactions
  
  Re-fitting to get Hessian
  
  
  Re-fitting to get Hessian
  
  Could not compute variance-covariance matrix of predictions. No
    confidence intervals are returned.
  Model contains splines or polynomial terms. Consider using `terms="mined
    [all]"` to get smooth plots. See also package-vignette 'Adjusted
    Predictions at Specific Values'.
  Model contains splines or polynomial terms. Consider using `terms="cover
    [all]"` to get smooth plots. See also package-vignette 'Adjusted
    Predictions at Specific Values'.
  Model contains splines or polynomial terms. Consider using `terms="mined
    [all]"` to get smooth plots. See also package-vignette 'Adjusted
    Predictions at Specific Values'.
  Model contains splines or polynomial terms. Consider using `terms="cover
    [all]"` to get smooth plots. See also package-vignette 'Adjusted
    Predictions at Specific Values'.
  Can't compute adjusted predictions, `effects::Effect()` returned an error.
  
  Reason: Invalid operation on a survival time
  You may try `ggpredict()` or `ggemmeans()`.
  
  Can't compute adjusted predictions, `effects::Effect()` returned an error.
  
  Reason: non-conformable arguments
  You may try `ggpredict()` or `ggemmeans()`.
  
  [ FAIL 15 | WARN 0 | SKIP 74 | PASS 500 ]
  
  ══ Skipped tests (74) ══════════════════════════════════════════════════════════
  • On CRAN (61): '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-glmer.R:2:1', 'test-glmmTMB.R:1:1', 'test-interval_re.R:1:1',
    'test-ivreg.R:1:1', 'test-johnson_neyman.R:1:1',
    'test-johnson_neyman_numcat.R:1:1', 'test-list_terms.R:36:3',
    'test-lmer.R:1:1', 'test-mgcv.R:1:1', 'test-plot-from-vignettes.R:5:1',
    'test-plot-ordinal-latent.R:1:1', 'test-plot-show_data.R:1:1',
    'test-plot-survival.R:2:1', 'test-plot.R:1:1', 'test-polr.R:21:7',
    'test-polr.R:60:7', '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-resid_over_grid.R:33:5',
    '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-test_predictions_emmeans.R:133:3',
    'test-test_predictions_emmeans.R:168:3',
    'test-test_predictions_ggeffects.R:140:3',
    'test-test_predictions_ggeffects.R:184:3',
    'test-test_predictions_ggeffects.R:193:3',
    'test-test_predictions_ggeffects.R:236:5', 'test-vcov.R:1:1',
    'test-vglm.R:1:1', 'test-zeroinfl.R:27:3', 'test-zi_prob.R:1:1'
  • On Linux (11): 'test-brglm.R:1:1', 'test-ci_backticks-names.R:1:1',
    'test-emmeans-weights.R:1:1', 'test-gee.R:1:1', 'test-ggaverage.R:1:1',
    'test-glm.R:1:1', 'test-ordinal.R:1:1', 'test-parsnip.R:94:3',
    'test-print_subsets.R:1:1', 'test-print_test_predictions-ordinal.R:1:1',
    'test-print_test_predictions.R:1:1'
  • empty test (2): 'test-polr.R:136:5', 'test-polr.R:142:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-betareg.R:51:3'): ggpredict ────────────────────────────────────
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(p) at test-betareg.R:51:3
    2. └─ggeffects:::test_predictions.ggeffects(p)
    3.   ├─base::do.call(test_predictions.default, c(my_args, dot_args))
    4.   └─ggeffects (local) `<fn>`(...)
    5.     └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    6.       ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    7.       └─marginaleffects (local) `<fn>`(...)
    8.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
    9.           └─checkmate::assert(...)
   10.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   11.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:30:3'): test_predictions, categorical, pairwise ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
      ▆
   1. ├─ggeffects::test_predictions(model1, c("groups", "episode")) at test-test_predictions.R:30:3
   2. └─ggeffects:::test_predictions.default(model1, c("groups", "episode"))
   3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
   4.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   5.     └─marginaleffects (local) `<fn>`(...)
   6.       └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   7.         └─checkmate::assert(...)
   8.           └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   9.             └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:63:3'): test_predictions, categorical, pairwise, p_adjust ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
      ▆
   1. ├─ggeffects::test_predictions(model1, c("groups", "episode")) at test-test_predictions.R:63:3
   2. └─ggeffects:::test_predictions.default(model1, c("groups", "episode"))
   3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
   4.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   5.     └─marginaleffects (local) `<fn>`(...)
   6.       └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   7.         └─checkmate::assert(...)
   8.           └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   9.             └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:107:3'): test_predictions, interaction ──────
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(model2, c("Sepal.Length", "Species")) at test-test_predictions.R:107:3
    2. └─ggeffects:::test_predictions.default(...)
    3.   └─ggeffects:::.call_me("slopes", fun_args, dot_args, include_random)
    4.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    5.     └─marginaleffects (local) `<fn>`(...)
    6.       └─marginaleffects::comparisons(...)
    7.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
    8.           └─checkmate::assert(...)
    9.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   10.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:125:3'): test_predictions, by-argument ──────
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(prfilter, by = "c161sex") at test-test_predictions.R:125:3
    2. └─ggeffects:::test_predictions.ggeffects(prfilter, by = "c161sex")
    3.   ├─base::do.call(test_predictions.default, c(my_args, dot_args))
    4.   └─ggeffects (local) `<fn>`(...)
    5.     └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    6.       ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    7.       └─marginaleffects (local) `<fn>`(...)
    8.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
    9.           └─checkmate::assert(...)
   10.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   11.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:155:3'): test_predictions, categorical, pairwise ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(model3, c("groups", "episode")) at test-test_predictions.R:155:3
    2. └─ggeffects:::test_predictions.default(model3, c("groups", "episode"))
    3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    4.     ├─base::suppressMessages(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     ├─base::suppressWarnings(...)
    7.     │ └─base::withCallingHandlers(...)
    8.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    9.     └─marginaleffects (local) `<fn>`(...)
   10.       └─marginaleffects::predictions(...)
   11.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   12.           └─checkmate::assert(...)
   13.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   14.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:221:3'): test_predictions, categorical, one focal, pairwise ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(m, "Sex") at test-test_predictions.R:221:3
    2. └─ggeffects:::test_predictions.default(m, "Sex")
    3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    4.     ├─base::suppressMessages(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     ├─base::suppressWarnings(...)
    7.     │ └─base::withCallingHandlers(...)
    8.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    9.     └─marginaleffects (local) `<fn>`(...)
   10.       └─marginaleffects::predictions(...)
   11.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   12.           └─checkmate::assert(...)
   13.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   14.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:244:3'): test_predictions, masked chars in levels ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(model, c("groups", "sex")) at test-test_predictions.R:244:3
    2. └─ggeffects:::test_predictions.default(model, c("groups", "sex"))
    3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    4.     ├─base::suppressMessages(...)
    5.     │ └─base::withCallingHandlers(...)
    6.     ├─base::suppressWarnings(...)
    7.     │ └─base::withCallingHandlers(...)
    8.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    9.     └─marginaleffects (local) `<fn>`(...)
   10.       └─marginaleffects::predictions(...)
   11.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   12.           └─checkmate::assert(...)
   13.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   14.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:268:3'): test_predictions, don't drop single columns ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-test_predictions.R:268:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─ggeffects::test_predictions(m, c("Sepal.Width.factor", "Petal.Width [0.5]"))
    5. └─ggeffects:::test_predictions.default(...)
    6.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    7.     ├─base::suppressMessages(...)
    8.     │ └─base::withCallingHandlers(...)
    9.     ├─base::suppressWarnings(...)
   10.     │ └─base::withCallingHandlers(...)
   11.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   12.     └─marginaleffects (local) `<fn>`(...)
   13.       └─marginaleffects::predictions(...)
   14.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   15.           └─checkmate::assert(...)
   16.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   17.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:284:3'): test_predictions, make sure random effects group is categorical ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(ggpredict(m, c("Days", "grp"))) at test-test_predictions.R:284:3
    2. └─ggeffects:::test_predictions.ggeffects(...)
    3.   ├─base::do.call(test_predictions.default, c(my_args, dot_args))
    4.   └─ggeffects (local) `<fn>`(...)
    5.     └─ggeffects:::.call_me("slopes", fun_args, dot_args, include_random)
    6.       ├─base::suppressMessages(...)
    7.       │ └─base::withCallingHandlers(...)
    8.       ├─base::suppressWarnings(...)
    9.       │ └─base::withCallingHandlers(...)
   10.       ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   11.       └─marginaleffects (local) `<fn>`(...)
   12.         └─marginaleffects::comparisons(...)
   13.           └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   14.             └─checkmate::assert(...)
   15.               └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   16.                 └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:307:3'): test_predictions, works with glmmTMB and w/o vcov ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(predictions, verbose = FALSE) at test-test_predictions.R:307:3
    2. └─ggeffects:::test_predictions.ggeffects(predictions, verbose = FALSE)
    3.   ├─base::do.call(test_predictions.default, c(my_args, dot_args))
    4.   └─ggeffects (local) `<fn>`(...)
    5.     └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    6.       ├─base::suppressMessages(...)
    7.       │ └─base::withCallingHandlers(...)
    8.       ├─base::suppressWarnings(...)
    9.       │ └─base::withCallingHandlers(...)
   10.       ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   11.       └─marginaleffects (local) `<fn>`(...)
   12.         └─marginaleffects::predictions(...)
   13.           └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   14.             └─checkmate::assert(...)
   15.               └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   16.                 └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:331:3'): test_predictions, correct order of character vectors ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(pr1) at test-test_predictions.R:331:3
    2. └─ggeffects:::test_predictions.ggeffects(pr1)
    3.   ├─base::do.call(test_predictions.default, c(my_args, dot_args))
    4.   └─ggeffects (local) `<fn>`(...)
    5.     └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    6.       ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
    7.       └─marginaleffects (local) `<fn>`(...)
    8.         └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
    9.           └─checkmate::assert(...)
   10.             └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   11.               └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions.R:350:3'): test_predictions, zero-inflated models ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
       ▆
    1. ├─ggeffects::test_predictions(pr1) at test-test_predictions.R:350:3
    2. └─ggeffects:::test_predictions.ggeffects(pr1)
    3.   ├─base::do.call(test_predictions.default, c(my_args, dot_args))
    4.   └─ggeffects (local) `<fn>`(...)
    5.     └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
    6.       ├─base::suppressMessages(...)
    7.       │ └─base::withCallingHandlers(...)
    8.       ├─base::suppressWarnings(...)
    9.       │ └─base::withCallingHandlers(...)
   10.       ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   11.       └─marginaleffects (local) `<fn>`(...)
   12.         └─marginaleffects::predictions(...)
   13.           └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   14.             └─checkmate::assert(...)
   15.               └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   16.                 └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions_emmeans.R:18:3'): test_predictions, engine emmeans ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
      ▆
   1. ├─ggeffects::test_predictions(m, "c172code") at test-test_predictions_emmeans.R:18:3
   2. └─ggeffects:::test_predictions.default(m, "c172code")
   3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
   4.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   5.     └─marginaleffects (local) `<fn>`(...)
   6.       └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   7.         └─checkmate::assert(...)
   8.           └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   9.             └─checkmate:::mstop("Assertion failed. %s", res)
  ── Error ('test-test_predictions_emmeans.R:80:3'): test_predictions, engine emmeans, glm binomial ──
  Error: Assertion failed. One of the following must apply:
   * checkmate::check_character(hypothesis): Must comply to pattern '='
   * checkmate::check_numeric(hypothesis): Must be of type 'numeric', not
   * 'character'
   * checkmate::check_formula(hypothesis): Must be a formula, not
   * character
   * checkmate::check_matrix(hypothesis): Must be of type 'matrix', not
   * 'character'
   * checkmate::check_function(hypothesis): Must be a function, not
   * 'character'
   * checkmate::check_null(hypothesis): Must be NULL
  Backtrace:
      ▆
   1. ├─ggeffects::test_predictions(m, "var_binom", margin = "marginaleffects") at test-test_predictions_emmeans.R:80:3
   2. └─ggeffects:::test_predictions.default(m, "var_binom", margin = "marginaleffects")
   3.   └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random)
   4.     ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args)
   5.     └─marginaleffects (local) `<fn>`(...)
   6.       └─marginaleffects:::sanitize_hypothesis(hypothesis, ...)
   7.         └─checkmate::assert(...)
   8.           └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add)
   9.             └─checkmate:::mstop("Assertion failed. %s", res)
  
  [ FAIL 15 | WARN 0 | SKIP 74 | PASS 500 ]
  Error: Test failures
  Execution halted