Running ‘testthat.R’ [196s/307s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(BayesERtools)
  > 
  > test_check("BayesERtools")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 88 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dev_ermod_emax.R:2:1'): (code run outside of `test_that()`) ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'rstanemax'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-dev_ermod_emax.R:2:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-ermod-methods.R:13:1'): (code run outside of `test_that()`) ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'rstanemax'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-ermod-methods.R:13:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-eval_ermod.R:25:1'): (code run outside of `test_that()`) ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'rstanemax'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-eval_ermod.R:25:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 88 ]
  Error: Test failures
  Execution halted