Running ‘testthat.R’ [179s/219s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ggeffects)
  > 
  > if (length(strsplit(packageDescription("ggeffects")$Version, "\\.")[[1]]) > 3) {
  +   Sys.setenv("RunAllggeffectsTests" = "yes")
  + } else {
  +   Sys.setenv("RunAllggeffectsTests" = "no")
  + }
  > 
  > test_check("ggeffects")
  GAM s.wam loop 1: deviance = 66.42095 
  GAM s.wam loop 2: deviance = 63.77252 
  GAM s.wam loop 3: deviance = 63.25199 
  GAM s.wam loop 4: deviance = 63.13399 
  GAM s.wam loop 5: deviance = 63.11016 
  GAM s.wam loop 6: deviance = 63.10748 
  GAM s.wam loop 7: deviance = 63.10727 
  GAM s.wam loop 8: deviance = 63.10725 
  GAM s.wam loop 9: deviance = 63.10725 
  ── 1. Error: (unknown) (@test-condition.R#10)  ─────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjmisc::to_label(efc$e42dep)
   3. sjlabelled:::as_label.default(...)
   4. sjlabelled:::as_label_helper(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 2. Error: (unknown) (@test-contrasts.R#11)  ─────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::as_label(efc$e15relat)
   2. sjlabelled:::as_label.default(efc$e15relat)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 3. Error: (unknown) (@test-contrasts2.R#11)  ────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::as_label(efc$e15relat)
   2. sjlabelled:::as_label.default(efc$e15relat)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 4. Error: (unknown) (@test-contrasts3.R#11)  ────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::as_label(efc$e15relat)
   2. sjlabelled:::as_label.default(efc$e15relat)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  (Intercept)    tensionM    tensionH 
     36.38889   -10.00000   -14.72222 
  ── 5. Error: (unknown) (@test-get_titles.R#10)  ────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjmisc::to_factor(efc$c172code)
   2. sjmisc:::to_fac_helper(.dat, add.non.labelled, ref.lvl)
   4. sjlabelled:::get_labels.default(...)
   5. sjlabelled:::get_labels_helper(...)
   6. haven::is_tagged_na(labels)
  
  ── 6. Error: ggpredict, glm (@test-glm.R#24)  ──────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(fit, c("c12hour", "c161sex"))
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 7. Error: ggeffect, glm (@test-glm.R#30)  ───────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggeffect(fit, c("c12hour", "c161sex"))
   2. ggeffects:::ggeffect_helper(model, terms, ci.lvl, ...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 8. Error: ggemmeans, glm (@test-glm.R#36)  ──────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggemmeans(fit, c("c12hour", "c161sex"))
   2. ggeffects:::.post_processing_predictions(...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 9. Error: ggpredict, glm, robust (@test-glm.R#52)  ──────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(...)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  Can't compute marginal effects, 'emmeans::emmeans()' returned an error.
  
  Reason: Can't handle an object of class  "glmrob" 
   Use help("models", package = "emmeans") for information on supported models.
  You may try 'ggpredict()' or 'ggeffect()'.
  
  ── 10. Error: ggpredict, lm (@test-linear-models.R#16)  ────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(fit, c("c12hour", "c161sex"))
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 11. Error: ggpredict, lm-vcov (@test-linear-models.R#31)  ───────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(...)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 12. Error: ggpredict, lm-prediction-interval (@test-linear-models.R#35)  ────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(fit, c("c12hour", "c161sex"), interval = "predict")
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 13. Error: ggpredict, lm-noci (@test-linear-models.R#47)  ───────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(fit, c("c12hour", "c161sex"), ci.lvl = NA)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 14. Error: ggpredict, lm, ci.lvl (@test-linear-models.R#52)  ────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(fit, c("c12hour", "c161sex"), ci.lvl = 0.8)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 15. Error: ggpredict, lm, typical (@test-linear-models.R#58)  ───────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(...)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 16. Error: ggpredict, lm, condition (@test-linear-models.R#63)  ─────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(...)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_labels(...)
   4. ggeffects:::.get_axis_titles_and_labels(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 17. Error: ggpredict, lm, pretty (@test-linear-models.R#69)  ────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(...)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 18. Error: ggpredict, lm, full.data (@test-linear-models.R#73)  ─────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(...)
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_labels(...)
   4. ggeffects:::.get_axis_titles_and_labels(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 19. Error: ggeffect, lm (@test-linear-models.R#79)  ─────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggeffect(fit, c("c12hour", "c161sex"))
   2. ggeffects:::ggeffect_helper(model, terms, ci.lvl, ...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 20. Error: ggemmeans, lm (@test-linear-models.R#85)  ────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggemmeans(fit, c("c12hour", "c161sex"))
   2. ggeffects:::.post_processing_predictions(...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 21. Error: ggemmeans, lm, ci.lvl (@test-linear-models.R#91)  ────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggemmeans(fit, c("c12hour", "c161sex"), ci.lvl = 0.8)
   2. ggeffects:::.post_processing_predictions(...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 22. Error: ggemmeans, lm, typical (@test-linear-models.R#97)  ───────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggemmeans(...)
   2. ggeffects:::.post_processing_predictions(...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 23. Error: ggemmeans, lm, condition (@test-linear-models.R#102)  ────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggemmeans(...)
   2. ggeffects:::.post_processing_labels(...)
   3. ggeffects:::.get_axis_titles_and_labels(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 24. Error: ggemmeans, lm, pretty (@test-linear-models.R#108)  ───────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggemmeans(...)
   2. ggeffects:::.post_processing_predictions(...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 25. Error: (unknown) (@test-linear-models.R#115)  ───────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::to_label(efc$c172code)
   2. sjlabelled:::as_label.default(efc$c172code)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  Can't compute marginal effects, 'emmeans::emmeans()' returned an error.
  
  Reason: Can't handle an object of class  "lmrob" 
   Use help("models", package = "emmeans") for information on supported models.
  You may try 'ggpredict()' or 'ggeffect()'.
  
  Can't compute marginal effects, 'emmeans::emmeans()' returned an error.
  
  Reason: Can't handle an object of class  "logistf" 
   Use help("models", package = "emmeans") for information on supported models.
  You may try 'ggpredict()' or 'ggeffect()'.
  
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: object 'neg_c_7d' not found
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  ── 26. Error: (unknown) (@test-negbin.R#10)  ───────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::to_label(efc$e42dep)
   2. sjlabelled:::as_label.default(efc$e42dep)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 27. Error: (unknown) (@test-plot.R#12)  ─────────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::to_label(efc$c172code)
   2. sjlabelled:::as_label.default(efc$c172code)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  ── 28. Error: ggpredict, glm (@test-poisson.R#13)  ─────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggpredict(fit, c("c12hour", "c161sex"))
   2. ggeffects:::ggpredict_helper(...)
   3. ggeffects:::.post_processing_predictions(...)
   4. ggeffects:::.add_labels_to_groupvariable(...)
   6. sjlabelled:::get_labels.default(...)
   7. sjlabelled:::get_labels_helper(...)
   8. haven::is_tagged_na(labels)
  
  ── 29. Error: ggeffect, glm (@test-poisson.R#19)  ──────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. ggeffects::ggeffect(fit, c("c12hour", "c161sex"))
   2. ggeffects:::ggeffect_helper(model, terms, ci.lvl, ...)
   3. ggeffects:::.add_labels_to_groupvariable(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  Error: Confidence intervals could not be computed.
  * Reason: "`Type` does not have enough factor levels. Try to remove `[Tower]`."
  * Source: .safe_se_from_vcov(model, prediction_data, value_adjustment, terms, model_class, type, vcov.fun, vcov.type, vcov.args, condition, interval)
  Error: Confidence intervals could not be computed.
  * Reason: "`Type` does not have enough factor levels. Try to remove `[Terrace]`."
  * Source: .safe_se_from_vcov(model, prediction_data, value_adjustment, terms, model_class, type, vcov.fun, vcov.type, vcov.args, condition, interval)
  Error: Confidence intervals could not be computed.
  * Reason: "`Type` does not have enough factor levels. Try to remove `[Tower]`."
  * Source: .safe_se_from_vcov(model, prediction_data, value_adjustment, terms, model_class, type, vcov.fun, vcov.type, vcov.args, condition, interval)
  ── 30. Error: (unknown) (@test-print.R#11)  ────────────────────────────────────
  object 'is_tagged_na_' not found
  Backtrace:
   1. sjlabelled::to_label(efc$c172code)
   2. sjlabelled:::as_label.default(efc$c172code)
   3. sjlabelled:::as_label_helper(...)
   5. sjlabelled:::get_labels.default(...)
   6. sjlabelled:::get_labels_helper(...)
   7. haven::is_tagged_na(labels)
  
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: object does not have variance-covariance matrix
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  Can't compute marginal effects, 'emmeans::emmeans()' returned an error.
  
  Reason: Can't handle an object of class  "rq" 
   Use help("models", package = "emmeans") for information on supported models.
  You may try 'ggpredict()' or 'ggeffect()'.
  
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: Invalid operation on a survival time
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  Can't compute marginal effects, 'effects::Effect()' returned an error.
  
  Reason: non-conformable arguments
  You may try 'ggpredict()' or 'ggemmeans()'.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 85 | SKIPPED: 10 | WARNINGS: 718 | FAILED: 30 ]
  1. Error: (unknown) (@test-condition.R#10) 
  2. Error: (unknown) (@test-contrasts.R#11) 
  3. Error: (unknown) (@test-contrasts2.R#11) 
  4. Error: (unknown) (@test-contrasts3.R#11) 
  5. Error: (unknown) (@test-get_titles.R#10) 
  6. Error: ggpredict, glm (@test-glm.R#24) 
  7. Error: ggeffect, glm (@test-glm.R#30) 
  8. Error: ggemmeans, glm (@test-glm.R#36) 
  9. Error: ggpredict, glm, robust (@test-glm.R#52) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted