Running ‘spelling.R’ [8s/9s]
  Comparing ‘spelling.Rout’ to ‘spelling.Rout.save’ ... OK
  Running ‘testthat.R’ [54s/69s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(httptest)
  Loading required package: testthat
  > options(crunch.check.updates=FALSE)
  > if (nchar(Sys.getenv("JENKINS_HOME"))) {
  +     test_check("crunch",
  +         reporter=MultiReporter$new(list(
  +             SummaryReporter$new(),
  +             JunitReporter$new(file=file.path(Sys.getenv("WORKSPACE"), "rcrunch.xml"))
  +         )))
  + } else {
  +     test_check("crunch")
  + }
  Loading required package: crunch
  
  Attaching package: 'crunch'
  
  The following object is masked from 'package:utils':
  
      write.csv
  
  The following object is masked from 'package:base':
  
      table
  
  [31m──[39m [31m1. Error: toVariable parses haven::labelled (@test-add-variable.R#41) [39m [31m──────[39m
  there is no package called 'haven'
  1: haven::labelled at testthat/test-add-variable.R:41
  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)
  
  [31m──[39m [31m2. Error: toVariable parses haven::labelled_spss (@test-add-variable.R#77) [39m [31m─[39m
  there is no package called 'haven'
  1: haven::labelled_spss at testthat/test-add-variable.R:77
  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: 2585 SKIPPED: 14 FAILED: 2
  1. Error: toVariable parses haven::labelled (@test-add-variable.R#41) 
  2. Error: toVariable parses haven::labelled_spss (@test-add-variable.R#77) 
  
  Error: testthat unit tests failed
  Execution halted