Running ‘testthat.R’ [13s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > 
  > library(testthat)
  > library(ricu)
  
  ── ricu 0.5.3 ──────────────────────────────────────────────────────────────────
  
  The following data sources are configured to be attached:
  (the environment variable `RICU_SRC_LOAD` controls this)
  
  ✖ mimic: 0 of 26 tables available
  ✖ mimic_demo: 0 of 25 tables available
  ✖ eicu: 0 of 31 tables available
  ✖ eicu_demo: 0 of 31 tables available
  ✖ hirid: 0 of 5 tables available
  ✖ aumc: 0 of 7 tables available
  ✖ miiv: 0 of 27 tables available
  
  ────────────────────────────────────────────────────────────────────────────────
  
  
  Attaching package: 'ricu'
  
  The following objects are masked from 'package:testthat':
  
      is_false, is_true
  
  > 
  > # for running interactively, do Sys.setenv(TESTTHAT_PKG = "ricu")
  > 
  > test_check("ricu")
  [ FAIL 5 | WARN 0 | SKIP 10 | PASS 318 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Data source `mimic_demo` is missing but required for tests (2)
  • Data sources `mimic_demo` and `eicu_demo` are missing but required for (6)
  • On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-callback.R:24'): aumc callbacks ────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mockthat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-callback.R:24:2
   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-callback.R:139'): hirid callbacks ──────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mockthat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-callback.R:139:2
   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-concept.R:4'): load hirid items ────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mockthat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-concept.R:4:2
   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-setup-download.R:35'): (code run outside of `test_that()`) ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mockthat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-setup-download.R:35:0
   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-utils-cli.R:34'): cli progress ─────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mockthat'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-utils-cli.R:34:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 5 | WARN 0 | SKIP 10 | PASS 318 ]
  Error: Test failures
  Execution halted