CRAN Package Check Results for Package ggeffects

Last updated on 2025-02-04 15:49:11 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.1.0 12.87 242.49 255.36 ERROR
r-devel-linux-x86_64-debian-gcc 2.1.0 9.31 147.83 157.14 ERROR
r-devel-linux-x86_64-fedora-clang 2.1.0 419.68 ERROR
r-devel-linux-x86_64-fedora-gcc 2.1.0 393.53 ERROR
r-devel-windows-x86_64 2.1.0 18.00 242.00 260.00 ERROR
r-patched-linux-x86_64 2.1.0 15.47 244.34 259.81 OK
r-release-linux-x86_64 2.1.0 13.00 237.43 250.43 OK
r-release-macos-arm64 2.1.0 63.00 OK
r-release-macos-x86_64 2.1.0 115.00 OK
r-release-windows-x86_64 2.1.0 14.00 241.00 255.00 ERROR
r-oldrel-macos-arm64 2.0.0 54.00 OK
r-oldrel-macos-x86_64 2.0.0 119.00 OK
r-oldrel-windows-x86_64 2.1.0 13.00 365.00 378.00 ERROR

Check Details

Version: 2.1.0
Check: examples
Result: ERROR Running examples in ‘ggeffects-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: pool_comparisons > ### Title: Pool contrasts and comparisons from 'test_predictions()' > ### Aliases: pool_comparisons > > ### ** Examples > > ## Don't show: > if (require("mice")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("nhanes2", package = "mice") + imp <- mice::mice(nhanes2, printFlag = FALSE) + comparisons <- lapply(1:5, function(i) { + m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i)) + test_predictions(m, "age") + }) + pool_comparisons(comparisons) + ## Don't show: + }) # examplesIf Loading required package: mice Attaching package: ‘mice’ The following object is masked from ‘package:stats’: filter The following objects are masked from ‘package:base’: cbind, rbind > data("nhanes2", package = "mice") > imp <- mice::mice(nhanes2, printFlag = FALSE) > comparisons <- lapply(1:5, function(i) { + m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i)) + test_predictions(m, "age") + }) 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 Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed collapse_by_group 3.547 0.249 5.044 Flavor: r-devel-linux-x86_64-debian-clang

Version: 2.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [145s/171s] 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 Flavor: r-devel-linux-x86_64-debian-clang

Version: 2.1.0
Check: examples
Result: ERROR Running examples in ‘ggeffects-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: pool_comparisons > ### Title: Pool contrasts and comparisons from 'test_predictions()' > ### Aliases: pool_comparisons > > ### ** Examples > > ## Don't show: > if (require("mice")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("nhanes2", package = "mice") + imp <- mice::mice(nhanes2, printFlag = FALSE) + comparisons <- lapply(1:5, function(i) { + m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i)) + test_predictions(m, "age") + }) + pool_comparisons(comparisons) + ## Don't show: + }) # examplesIf Loading required package: mice Attaching package: ‘mice’ The following object is masked from ‘package:stats’: filter The following objects are masked from ‘package:base’: cbind, rbind > data("nhanes2", package = "mice") > imp <- mice::mice(nhanes2, printFlag = FALSE) > comparisons <- lapply(1:5, function(i) { + m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i)) + test_predictions(m, "age") + }) 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 Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [87s/105s] 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.1.0
Check: examples
Result: ERROR Running examples in ‘ggeffects-Ex.R’ failed The error most likely occurred in: > ### Name: pool_comparisons > ### Title: Pool contrasts and comparisons from 'test_predictions()' > ### Aliases: pool_comparisons > > ### ** Examples > > ## Don't show: > if (require("mice")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("nhanes2", package = "mice") + imp <- mice::mice(nhanes2, printFlag = FALSE) + comparisons <- lapply(1:5, function(i) { + m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i)) + test_predictions(m, "age") + }) + pool_comparisons(comparisons) + ## Don't show: + }) # examplesIf Loading required package: mice Attaching package: ‘mice’ The following object is masked from ‘package:stats’: filter The following objects are masked from ‘package:base’: cbind, rbind > data("nhanes2", package = "mice") > imp <- mice::mice(nhanes2, printFlag = FALSE) > comparisons <- lapply(1:5, function(i) { + m <- lm(bmi ~ age + hyp + chl, data = mice::complete(imp, action = i)) + test_predictions(m, "age") + }) 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 Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 2.1.0
Check: tests
Result: ERROR 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [212s/333s] 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 Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 2.1.0
Check: tests
Result: ERROR Running 'testthat.R' [141s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ggeffects) > test_check("ggeffects") (Intercept) tensionM tensionH 36.38889 -10.00000 -14.72222 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 # weights: 16 (9 variable) initial value 1149.238025 iter 10 value 1015.404427 final value 1013.443395 converged Re-fitting to get Hessian 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 31 | WARN 0 | SKIP 70 | PASS 565 ] ══ Skipped tests (70) ══════════════════════════════════════════════════════════ • On CRAN (68): '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_subsets.R:7:3', 'test-print_subsets.R:12:3', 'test-print_test_predictions.R:24:3', 'test-print_test_predictions.R:40:3', 'test-print_test_predictions.R:44:3', 'test-print_test_predictions.R:53:3', 'test-print_test_predictions.R:65:3', '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' • 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-brglm.R:23:3'): ggpredict brglm ─────────────────────────────── 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(out) at test-brglm.R:23:3 2. └─ggeffects:::test_predictions.ggeffects(out) 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-ggaverage.R:25:3'): ggaverage works with condition ───────────── 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(out1) at test-ggaverage.R:25:3 2. └─ggeffects:::test_predictions.ggeffects(out1) 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-print_test_predictions-ordinal.R:13:3'): print hypothesis_test ordinal outcome ── 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. ├─base::suppressMessages(...) at test-print_test_predictions-ordinal.R:13:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::suppressWarnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─ggeffects::hypothesis_test(ggpredict(m_polr, "Type"), scale = "probs") 6. └─ggeffects:::test_predictions.ggeffects(...) 7. ├─base::do.call(test_predictions.default, c(my_args, dot_args)) 8. └─ggeffects (local) `<fn>`(...) 9. └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random) 10. ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args) 11. └─marginaleffects (local) `<fn>`(...) 12. └─marginaleffects:::sanitize_hypothesis(hypothesis, ...) 13. └─checkmate::assert(...) 14. └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add) 15. └─checkmate:::mstop("Assertion failed. %s", res) ── Error ('test-print_test_predictions.R:19:3'): print hypothesis_test simple contrast link scale ── 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::hypothesis_test(m, "var_binom", scale = "link") at test-print_test_predictions.R:19:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "link") 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-print_test_predictions.R:27:3'): print hypothesis_test simple contrast exp scale ── 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::hypothesis_test(m, "var_binom", scale = "exp") at test-print_test_predictions.R:27:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "exp") 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-print_test_predictions.R:31:3'): print hypothesis_test simple contrast odds ratio scale ── 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::hypothesis_test(m, "var_binom", scale = "oddsratios") at test-print_test_predictions.R:31:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "oddsratios") 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-print_test_predictions.R:35:3'): print hypothesis_test simple contrast response scale ── 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::hypothesis_test(m, "var_binom", scale = "response") at test-print_test_predictions.R:35:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "response") 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-print_test_predictions.R:48:3'): print hypothesis_test contrasts link scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "link") at test-print_test_predictions.R:48:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:56:3'): print hypothesis_test contrasts exp scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "exp") at test-print_test_predictions.R:56:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:60:3'): print hypothesis_test contrasts response scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "response") at test-print_test_predictions.R:60:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:74:3'): print hypothesis_test many rows ── Error in `.tp_label_hypothesis_categorical(.comparisons, need_average_predictions = need_average_predictions, margin = margin, object = object, by_variables = by_variables, datagrid = datagrid, df = df, ci_level = ci_level, dot_args = dot_args, include_random = include_random, focal = focal, test = test)`: object 'hypothesis_label' not found Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-print_test_predictions.R:74:3 2. │ └─base::withCallingHandlers(...) 3. ├─ggeffects::hypothesis_test(...) 4. └─ggeffects:::test_predictions.default(...) 5. └─ggeffects:::.tp_label_hypothesis_categorical(...) ── Error ('test-print_test_predictions.R:170:3'): print hypothesis_test comma and dash 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::hypothesis_test(m, c("f1", "f2")) at test-print_test_predictions.R:170:3 2. └─ggeffects:::test_predictions.default(m, c("f1", "f2")) 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-print_test_predictions.R:230:3'): print hypothesis_test collapse 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::hypothesis_test(m, c("c172code", "c161sex"), collapse_levels = TRUE) at test-print_test_predictions.R:230:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:238:3'): hypothesis_test, ci-level ──── 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::hypothesis_test(m, "Species") at test-print_test_predictions.R:238:3 2. └─ggeffects:::test_predictions.default(m, "Species") 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-print_test_predictions.R:256:3'): glmmTMB, orderedbeta ───────── 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_snapshot(print(test_predictions(out2))) at test-print_test_predictions.R:256:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-print_test_predictions.R:268:5'): print hypothesis_test collapse CI ── 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::hypothesis_test(pr) at test-print_test_predictions.R:268:5 2. └─ggeffects:::test_predictions.ggeffects(pr) 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 31 | WARN 0 | SKIP 70 | PASS 565 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64

Version: 2.1.0
Check: tests
Result: ERROR Running 'testthat.R' [139s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ggeffects) > test_check("ggeffects") (Intercept) tensionM tensionH 36.38889 -10.00000 -14.72222 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 # weights: 16 (9 variable) initial value 1149.238025 iter 10 value 1015.404427 final value 1013.443395 converged Re-fitting to get Hessian Re-fitting to get Hessian Re-fitting to get Hessian 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 31 | WARN 0 | SKIP 70 | PASS 565 ] ══ Skipped tests (70) ══════════════════════════════════════════════════════════ • On CRAN (68): '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_subsets.R:7:3', 'test-print_subsets.R:12:3', 'test-print_test_predictions.R:24:3', 'test-print_test_predictions.R:40:3', 'test-print_test_predictions.R:44:3', 'test-print_test_predictions.R:53:3', 'test-print_test_predictions.R:65:3', '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' • 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-brglm.R:23:3'): ggpredict brglm ─────────────────────────────── 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(out) at test-brglm.R:23:3 2. └─ggeffects:::test_predictions.ggeffects(out) 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-ggaverage.R:25:3'): ggaverage works with condition ───────────── 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(out1) at test-ggaverage.R:25:3 2. └─ggeffects:::test_predictions.ggeffects(out1) 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-print_test_predictions-ordinal.R:13:3'): print hypothesis_test ordinal outcome ── 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. ├─base::suppressMessages(...) at test-print_test_predictions-ordinal.R:13:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::suppressWarnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─ggeffects::hypothesis_test(ggpredict(m_polr, "Type"), scale = "probs") 6. └─ggeffects:::test_predictions.ggeffects(...) 7. ├─base::do.call(test_predictions.default, c(my_args, dot_args)) 8. └─ggeffects (local) `<fn>`(...) 9. └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random) 10. ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args) 11. └─marginaleffects (local) `<fn>`(...) 12. └─marginaleffects:::sanitize_hypothesis(hypothesis, ...) 13. └─checkmate::assert(...) 14. └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add) 15. └─checkmate:::mstop("Assertion failed. %s", res) ── Error ('test-print_test_predictions.R:19:3'): print hypothesis_test simple contrast link scale ── 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::hypothesis_test(m, "var_binom", scale = "link") at test-print_test_predictions.R:19:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "link") 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-print_test_predictions.R:27:3'): print hypothesis_test simple contrast exp scale ── 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::hypothesis_test(m, "var_binom", scale = "exp") at test-print_test_predictions.R:27:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "exp") 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-print_test_predictions.R:31:3'): print hypothesis_test simple contrast odds ratio scale ── 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::hypothesis_test(m, "var_binom", scale = "oddsratios") at test-print_test_predictions.R:31:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "oddsratios") 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-print_test_predictions.R:35:3'): print hypothesis_test simple contrast response scale ── 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::hypothesis_test(m, "var_binom", scale = "response") at test-print_test_predictions.R:35:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "response") 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-print_test_predictions.R:48:3'): print hypothesis_test contrasts link scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "link") at test-print_test_predictions.R:48:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:56:3'): print hypothesis_test contrasts exp scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "exp") at test-print_test_predictions.R:56:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:60:3'): print hypothesis_test contrasts response scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "response") at test-print_test_predictions.R:60:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:74:3'): print hypothesis_test many rows ── Error in `.tp_label_hypothesis_categorical(.comparisons, need_average_predictions = need_average_predictions, margin = margin, object = object, by_variables = by_variables, datagrid = datagrid, df = df, ci_level = ci_level, dot_args = dot_args, include_random = include_random, focal = focal, test = test)`: object 'hypothesis_label' not found Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-print_test_predictions.R:74:3 2. │ └─base::withCallingHandlers(...) 3. ├─ggeffects::hypothesis_test(...) 4. └─ggeffects:::test_predictions.default(...) 5. └─ggeffects:::.tp_label_hypothesis_categorical(...) ── Error ('test-print_test_predictions.R:170:3'): print hypothesis_test comma and dash 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::hypothesis_test(m, c("f1", "f2")) at test-print_test_predictions.R:170:3 2. └─ggeffects:::test_predictions.default(m, c("f1", "f2")) 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-print_test_predictions.R:230:3'): print hypothesis_test collapse 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::hypothesis_test(m, c("c172code", "c161sex"), collapse_levels = TRUE) at test-print_test_predictions.R:230:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:238:3'): hypothesis_test, ci-level ──── 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::hypothesis_test(m, "Species") at test-print_test_predictions.R:238:3 2. └─ggeffects:::test_predictions.default(m, "Species") 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-print_test_predictions.R:256:3'): glmmTMB, orderedbeta ───────── 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_snapshot(print(test_predictions(out2))) at test-print_test_predictions.R:256:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-print_test_predictions.R:268:5'): print hypothesis_test collapse CI ── 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::hypothesis_test(pr) at test-print_test_predictions.R:268:5 2. └─ggeffects:::test_predictions.ggeffects(pr) 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 31 | WARN 0 | SKIP 70 | PASS 565 ] Error: Test failures Execution halted Flavor: r-release-windows-x86_64

Version: 2.1.0
Check: tests
Result: ERROR Running 'testthat.R' [199s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ggeffects) > test_check("ggeffects") (Intercept) tensionM tensionH 36.38889 -10.00000 -14.72222 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 # weights: 16 (9 variable) initial value 1149.238025 iter 10 value 1015.404427 final value 1013.443395 converged Re-fitting to get Hessian Re-fitting to get Hessian Re-fitting to get Hessian 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 31 | WARN 0 | SKIP 70 | PASS 565 ] ══ Skipped tests (70) ══════════════════════════════════════════════════════════ • On CRAN (68): '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_subsets.R:7:3', 'test-print_subsets.R:12:3', 'test-print_test_predictions.R:24:3', 'test-print_test_predictions.R:40:3', 'test-print_test_predictions.R:44:3', 'test-print_test_predictions.R:53:3', 'test-print_test_predictions.R:65:3', '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' • 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-brglm.R:23:3'): ggpredict brglm ─────────────────────────────── 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(out) at test-brglm.R:23:3 2. └─ggeffects:::test_predictions.ggeffects(out) 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-ggaverage.R:25:3'): ggaverage works with condition ───────────── 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(out1) at test-ggaverage.R:25:3 2. └─ggeffects:::test_predictions.ggeffects(out1) 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-print_test_predictions-ordinal.R:13:3'): print hypothesis_test ordinal outcome ── 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. ├─base::suppressMessages(...) at test-print_test_predictions-ordinal.R:13:3 2. │ └─base::withCallingHandlers(...) 3. ├─base::suppressWarnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─ggeffects::hypothesis_test(ggpredict(m_polr, "Type"), scale = "probs") 6. └─ggeffects:::test_predictions.ggeffects(...) 7. ├─base::do.call(test_predictions.default, c(my_args, dot_args)) 8. └─ggeffects (local) `<fn>`(...) 9. └─ggeffects:::.call_me(fun, fun_args, dot_args, include_random) 10. ├─base::do.call(get(fun, asNamespace("marginaleffects")), all_args) 11. └─marginaleffects (local) `<fn>`(...) 12. └─marginaleffects:::sanitize_hypothesis(hypothesis, ...) 13. └─checkmate::assert(...) 14. └─checkmate:::mstopOrPush(res = msgs, v_name = .var.name, collection = add) 15. └─checkmate:::mstop("Assertion failed. %s", res) ── Error ('test-print_test_predictions.R:19:3'): print hypothesis_test simple contrast link scale ── 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::hypothesis_test(m, "var_binom", scale = "link") at test-print_test_predictions.R:19:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "link") 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-print_test_predictions.R:27:3'): print hypothesis_test simple contrast exp scale ── 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::hypothesis_test(m, "var_binom", scale = "exp") at test-print_test_predictions.R:27:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "exp") 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-print_test_predictions.R:31:3'): print hypothesis_test simple contrast odds ratio scale ── 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::hypothesis_test(m, "var_binom", scale = "oddsratios") at test-print_test_predictions.R:31:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "oddsratios") 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-print_test_predictions.R:35:3'): print hypothesis_test simple contrast response scale ── 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::hypothesis_test(m, "var_binom", scale = "response") at test-print_test_predictions.R:35:3 2. └─ggeffects:::test_predictions.default(m, "var_binom", scale = "response") 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-print_test_predictions.R:48:3'): print hypothesis_test contrasts link scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "link") at test-print_test_predictions.R:48:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:56:3'): print hypothesis_test contrasts exp scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "exp") at test-print_test_predictions.R:56:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:60:3'): print hypothesis_test contrasts response scale ── 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::hypothesis_test(m, c("var_binom", "var_cont"), scale = "response") at test-print_test_predictions.R:60:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:74:3'): print hypothesis_test many rows ── Error in `.tp_label_hypothesis_categorical(.comparisons, need_average_predictions = need_average_predictions, margin = margin, object = object, by_variables = by_variables, datagrid = datagrid, df = df, ci_level = ci_level, dot_args = dot_args, include_random = include_random, focal = focal, test = test)`: object 'hypothesis_label' not found Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-print_test_predictions.R:74:3 2. │ └─base::withCallingHandlers(...) 3. ├─ggeffects::hypothesis_test(...) 4. └─ggeffects:::test_predictions.default(...) 5. └─ggeffects:::.tp_label_hypothesis_categorical(...) ── Error ('test-print_test_predictions.R:170:3'): print hypothesis_test comma and dash 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::hypothesis_test(m, c("f1", "f2")) at test-print_test_predictions.R:170:3 2. └─ggeffects:::test_predictions.default(m, c("f1", "f2")) 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-print_test_predictions.R:230:3'): print hypothesis_test collapse 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::hypothesis_test(m, c("c172code", "c161sex"), collapse_levels = TRUE) at test-print_test_predictions.R:230:3 2. └─ggeffects:::test_predictions.default(...) 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-print_test_predictions.R:238:3'): hypothesis_test, ci-level ──── 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::hypothesis_test(m, "Species") at test-print_test_predictions.R:238:3 2. └─ggeffects:::test_predictions.default(m, "Species") 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-print_test_predictions.R:256:3'): glmmTMB, orderedbeta ───────── 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_snapshot(print(test_predictions(out2))) at test-print_test_predictions.R:256:3 2. └─rlang::cnd_signal(state$error) ── Error ('test-print_test_predictions.R:268:5'): print hypothesis_test collapse CI ── 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::hypothesis_test(pr) at test-print_test_predictions.R:268:5 2. └─ggeffects:::test_predictions.ggeffects(pr) 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 31 | WARN 0 | SKIP 70 | PASS 565 ] Error: Test failures Execution halted Flavor: r-oldrel-windows-x86_64