Running ‘testthat.R’ [39s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BayesPostEst)
  > 
  > test_check("BayesPostEst")
  Loading required package: rjags
  Loading required package: coda
  Linked to JAGS 4.3.0
  Loaded modules: basemod,bugs
  
  Attaching package: 'R2jags'
  
  The following object is masked from 'package:coda':
  
      traceplot
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_mcmcRocPrc.R:236:3): rstanarm input works ─────────────────────
  `out <- mcmcRocPrc(rstanarm_logit, FALSE, FALSE)` threw an error.
  Message: Package "rstanarm" is needed for this function to work. Please install it.
  Class:   simpleError/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_mcmcRocPrc.R:236:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─BayesPostEst::mcmcRocPrc(rstanarm_logit, FALSE, FALSE)
   7. └─BayesPostEst:::mcmcRocPrc.stanreg(rstanarm_logit, FALSE, FALSE)
  ── Failure (test_mcmcRocPrc.R:245:3): rstanarm input works ─────────────────────
  `mcmcRocPrc(dummy_model)` threw an error with unexpected message.
  Expected match: "does not seem to be a binary choice model"
  Actual message: "Package \"rstanarm\" is needed for this function to work. Please install it."
  Backtrace:
      █
   1. ├─testthat::expect_error(mcmcRocPrc(dummy_model), "does not seem to be a binary choice model") test_mcmcRocPrc.R:245:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─BayesPostEst::mcmcRocPrc(dummy_model)
   7. └─BayesPostEst:::mcmcRocPrc.stanreg(dummy_model)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 130 ]
  Error: Test failures
  Execution halted