Running ‘testthat.R’ [9s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(metatools)
  > library(metacore)
  > 
  > test_check("metatools")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:magrittr':
  
      set_names
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:magrittr':
  
      extract
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
   Metadata successfully imported
  Loading in metacore object with suppressed warnings
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 29 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-build.R:1:1): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `library(haven)`: there is no package called 'haven'
  Backtrace:
      ▆
   1. └─base::library(haven) at test-build.R:1:0
  ── Error (test-checks.R:5:1): (code run outside of `test_that()`) ──────────────
  <packageNotFoundError/error/condition>
  Error in `library(haven)`: there is no package called 'haven'
  Backtrace:
      ▆
   1. └─base::library(haven) at test-checks.R:5:0
  ── Error (test-codelist.R:1:1): (code run outside of `test_that()`) ────────────
  <packageNotFoundError/error/condition>
  Error in `library(haven)`: there is no package called 'haven'
  Backtrace:
      ▆
   1. └─base::library(haven) at test-codelist.R:1:0
  ── Error (test-labels.R:85:4): set_variable_labels applies labels properly ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'haven'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-labels.R:85:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-sort.R:1:1): (code run outside of `test_that()`) ────────────────
  <packageNotFoundError/error/condition>
  Error in `library(haven)`: there is no package called 'haven'
  Backtrace:
      ▆
   1. └─base::library(haven) at test-sort.R:1:0
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 29 ]
  Error: Test failures
  Execution halted