Running ‘testthat.R’ [1s/1s]
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")
  ── 1. Error: (unknown) (@test_extract.R#1)  ────────────────────────────────────
  there is no package called 'readr'
  1: readr::read_csv at testthat/test_extract.R:1
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 2. Error: (unknown) (@test_integerise.R#3)  ─────────────────────────────────
  there is no package called 'readr'
  1: readr::read_csv at testthat/test_integerise.R:3
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 3. Error: (unknown) (@test_rake.R#3)  ───────────────────────────────────────
  there is no package called 'readr'
  1: readr::read_csv at testthat/test_rake.R:3
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 4. Error: (unknown) (@test_weight.R#3)  ─────────────────────────────────────
  there is no package called 'readr'
  1: readr::read_csv at testthat/test_weight.R:3
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 7 SKIPPED: 0 FAILED: 4
  1. Error: (unknown) (@test_extract.R#1) 
  2. Error: (unknown) (@test_integerise.R#3) 
  3. Error: (unknown) (@test_rake.R#3) 
  4. Error: (unknown) (@test_weight.R#3) 
  
  Error: testthat unit tests failed
  Execution halted