Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rakeR)
  
  Attaching package: 'rakeR'
  
  The following object is masked from 'package:stats':
  
      simulate
  
  > 
  > test_check("rakeR")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 7 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_extract.R:1:1): (code run outside of `test_that()`) ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'readr'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_extract.R:1:0
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_integerise.R:3:1): (code run outside of `test_that()`) ──────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'readr'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_integerise.R:3:0
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_rake.R:3:1): (code run outside of `test_that()`) ────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'readr'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_rake.R:3:0
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_weight.R:3:1): (code run outside of `test_that()`) ──────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'readr'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_weight.R:3:0
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 7 ]
  Error: Test failures
  Execution halted