Running ‘testthat.R’ [35s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (require("testthat")) {
  +   library(ggeffects)
  + 
  +   if (length(strsplit(packageDescription("ggeffects")$Version, ".", fixed = TRUE)[[1]]) > 3) {
  +     Sys.setenv("RunAllggeffectsTests" = "yes")
  +   } else {
  +     Sys.setenv("RunAllggeffectsTests" = "no")
  +   }
  + 
  + 
  +   si <- Sys.info()
  + 
  +   osx <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         si["sysname"] == "Darwin" || startsWith(R.version$os, "darwin")
  +       } else {
  +         FALSE
  +       }
  +     },
  +     error = function(e) {
  +       FALSE
  +     }
  +   )
  + 
  + 
  +   solaris <- tryCatch(
  +     {
  +       if (!is.null(si["sysname"])) {
  +         grepl("SunOS", si["sysname"], ignore.case = TRUE)
  +       } else {
  +         FALSE
  +       }
  +     },
  +     error = function(e) {
  +       FALSE
  +     }
  +   )
  + 
  +   if (!osx && !solaris) {
  +     test_check("ggeffects")
  +   }
  + }
  Loading required package: testthat
  (Intercept)    tensionM    tensionH 
     36.38889   -10.00000   -14.72222 
  Data were 'prettified'. Consider using `terms="c12hour [all]"` to get
    smooth plots.
  Data were 'prettified'. Consider using `terms="c12hour [all]"` to get
    smooth plots.
  Data points may overlap. Use the `jitter` argument to add some amount of
    random variation to the location of data points and avoid overplotting.
  Data points may overlap. Use the `jitter` argument to add some amount of
    random variation to the location of data points and avoid overplotting.
  Data points may overlap. Use the `jitter` argument to add some amount of
    random variation to the location of data points and avoid overplotting.
  Data points may overlap. Use the `jitter` argument to add some amount of
    random variation to the location of data points and avoid overplotting.
  [ FAIL 7 | WARN 0 | SKIP 26 | PASS 143 ]
  
  ══ Skipped tests (26) ══════════════════════════════════════════════════════════
  • AER cannot be loaded (1): 'test-tobit.R:1:1'
  • On Linux (3): 'test-print_hypothesis_test-ordinal.R:1:1',
    'test-print_hypothesis_test.R:1:1', 'test-print_subsets.R:1:1'
  • TRUE is TRUE (1): 'test-resid_over_grid.R:31:5'
  • effects cannot be loaded (5): 'test-betareg.R:1:1', 'test-gls.R:1:1',
    'test-linear-models.R:1:1', 'test-polr.R:1:1', 'test-survreg.R:1:1'
  • empty test (1): 'test-plot.R:13:3'
  • glmmTMB cannot be loaded (2): 'test-poly-zeroinf.R:1:1',
    'test-zeroinfl.R:1:1'
  • lme4 cannot be loaded (8): 'test-ci_backticks-names.R:1:1',
    'test-condition.R:1:1', 'test-contrasts.R:1:1', 'test-contrasts2.R:1:1',
    'test-contrasts3.R:1:1', 'test-glm.R:1:1', 'test-hypothesis_test.R:129:3',
    'test-nlme.R:1:1'
  • logistf cannot be loaded (1): 'test-logistf.R:1:1'
  • mice cannot be loaded (1): 'test-pool_predictions.R:1:1'
  • nestedLogit cannot be loaded (1): 'test-nestedLogit.R:1:1'
  • sjstats cannot be loaded (2): 'test-survey.R:1:1', 'test-svyglmnb.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-Gam2.R:18:5'): ggeffect ────────────────────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. └─ggeffects::ggeffect(m1, "Age") at test-Gam2.R:18:4
   2.   └─insight::check_if_installed("effects")
  ── Error ('test-lmrob_base.R:16:5'): ggeffect, lmrob ───────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. └─ggeffects::ggeffect(m1, "c12hour") at test-lmrob_base.R:16:4
   2.   └─insight::check_if_installed("effects")
  ── Error ('test-lrm.R:19:5'): ggeffect, lrm ────────────────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. ├─testthat::expect_null(ggeffect(m1, "c12hour")) at test-lrm.R:19:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggeffects::ggeffect(m1, "c12hour")
   5.   └─insight::check_if_installed("effects")
  ── Error ('test-negbin.R:19:5'): ggpredict, negbin ─────────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ggeffect(fit, "neg_c_7"), "data.frame") at test-negbin.R:19:4
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggeffects::ggeffect(fit, "neg_c_7")
   5.   └─insight::check_if_installed("effects")
  ── Error ('test-negbin.R:38:5'): ggpredict, negbin ─────────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ggeffect(fit, "neg_c_7"), "data.frame") at test-negbin.R:38:4
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggeffects::ggeffect(fit, "neg_c_7")
   5.   └─insight::check_if_installed("effects")
  ── Error ('test-poisson.R:18:5'): ggeffect, glm ────────────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ggeffect(fit, "c12hour"), "data.frame") at test-poisson.R:18:4
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggeffects::ggeffect(fit, "c12hour")
   5.   └─insight::check_if_installed("effects")
  ── Error ('test-rq.R:19:5'): ggeffect, rq ──────────────────────────────────────
  Error: Package `effects` required for this function to work.
    Please install it by running `install.packages("effects")`.
  Backtrace:
      ▆
   1. ├─testthat::expect_null(ggeffect(m1, "Air.Flow", verbose = FALSE)) at test-rq.R:19:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ggeffects::ggeffect(m1, "Air.Flow", verbose = FALSE)
   5.   └─insight::check_if_installed("effects")
  
  [ FAIL 7 | WARN 0 | SKIP 26 | PASS 143 ]
  Error: Test failures
  Execution halted