Running ‘testthat.R’ [36s/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'
  Backtrace:
   1. base::library(rstanarm)
  
  ── 2. Error: (unknown) (@test-ci.R#25)  ────────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 3. Error: describe_posterior (@test-describe_posterior.R#28)  ───────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::library(rstanarm)
  
  ── 4. Error: (unknown) (@test-describe_posterior.R#67)  ────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 5. Error: (unknown) (@test-emmGrid.R#3)  ────────────────────────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::library(rstanarm)
  
  ── 6. Error: (unknown) (@test-hdi.R#22)  ───────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 7. Error: map_estimate (@test-map_estimate.R#18)  ───────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
    1. testthat::expect_equal(...)
    5. bayestestR:::map_estimate.stanreg(m, effects = "all")
   10. insight:::get_parameters.stanreg(x, effects = effects, parameters = parameters)
   12. base::as.data.frame.default(x)
  
  ── 8. Error: (unknown) (@test-p_direction.R#17)  ───────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 9. Error: (unknown) (@test-p_map.R#13)  ─────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 10. Error: (unknown) (@test-p_significance.R#16)  ───────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 11. Error: (unknown) (@test-point_estimate.R#5)  ────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ── 12. Error: (unknown) (@test-rope.R#35)  ─────────────────────────────────────
  cannot coerce class 'c("stanreg", "glm", "lm", "lmerMod")' to a data.frame
  Backtrace:
   1. insight::get_parameters(m, effects = "all")
   2. insight:::get_parameters.stanreg(m, effects = "all")
   4. base::as.data.frame.default(x)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 124 | SKIPPED: 9 | 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#28) 
  4. Error: (unknown) (@test-describe_posterior.R#67) 
  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