Running ‘testthat.R’ [34s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayestestR)
  > 
  > test_check("bayestestR")
  ── 1. Error: bayesfactor_restricted RSTANARM (@test-bayesfactor_restricted.R#35)
  there is no package called 'rstanarm'
  1: library(rstanarm) at testthat/test-bayesfactor_restricted.R:35
  
  ── 2. Error: (unknown) (@test-ci.R#25)  ────────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-ci.R:25
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 3. Error: describe_posterior (@test-describe_posterior.R#27)  ───────────────
  there is no package called 'rstanarm'
  1: library(rstanarm) at testthat/test-describe_posterior.R:27
  
  ── 4. Error: (unknown) (@test-describe_posterior.R#61)  ────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-describe_posterior.R:61
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 5. Error: (unknown) (@test-emmGrid.R#3)  ────────────────────────────────────
  there is no package called 'rstanarm'
  1: library(rstanarm) at testthat/test-emmGrid.R:3
  
  ── 6. Error: (unknown) (@test-hdi.R#22)  ───────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-hdi.R:22
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 7. Error: map_estimate (@test-map_estimate.R#18)  ───────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: testthat::expect_equal(map_estimate(m, effects = "all")$Parameter, colnames(as.data.frame(m))[1:20]) at testthat/test-map_estimate.R:18
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: map_estimate(m, effects = "all")
  5: map_estimate.stanreg(m, effects = "all")
  6: .map_estimate_models(x = insight::get_parameters(x, effects = effects, parameters = parameters), 
         precision = precision, method = method)
  7: sapply(x, map_estimate, precision = precision, method = method, simplify = FALSE, 
         ...)
  8: lapply(X = X, FUN = FUN, ...)
  9: insight::get_parameters(x, effects = effects, parameters = parameters)
  10: get_parameters.stanreg(x, effects = effects, parameters = parameters)
  11: as.data.frame(x)
  12: as.data.frame.default(x)
  13: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 8. Error: (unknown) (@test-p_direction.R#17)  ───────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-p_direction.R:17
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 9. Error: (unknown) (@test-p_map.R#13)  ─────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-p_map.R:13
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 10. Error: (unknown) (@test-p_significance.R#16)  ───────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-p_significance.R:16
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ── 11. Error: (unknown) (@test-point_estimate.R#5)  ────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-point_estimate.R:5
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  # Proportion of samples inside the ROPE [-0.10, 0.10]:
  
   inside ROPE
        6.19 %
  
  ── 12. Error: (unknown) (@test-rope.R#35)  ─────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  1: insight::get_parameters(m, effects = "all") at testthat/test-rope.R:35
  2: get_parameters.stanreg(m, effects = "all")
  3: as.data.frame(x)
  4: as.data.frame.default(x)
  5: stop(gettextf("cannot coerce class %s to a data.frame", sQuote(deparse(class(x))[1L])), 
         domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 116 | SKIPPED: 7 | WARNINGS: 9 | FAILED: 12 ]
  1. Error: bayesfactor_restricted RSTANARM (@test-bayesfactor_restricted.R#35) 
  2. Error: (unknown) (@test-ci.R#25) 
  3. Error: describe_posterior (@test-describe_posterior.R#27) 
  4. Error: (unknown) (@test-describe_posterior.R#61) 
  5. Error: (unknown) (@test-emmGrid.R#3) 
  6. Error: (unknown) (@test-hdi.R#22) 
  7. Error: map_estimate (@test-map_estimate.R#18) 
  8. Error: (unknown) (@test-p_direction.R#17) 
  9. Error: (unknown) (@test-p_map.R#13) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted