Running 'testthat.R' [24s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(hesim)
  > 
  > test_check("hesim")
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 447 ]
  
  == Failed tests ================================================================
  -- Error ('test-bootstrap.R:2'): (code run outside of `test_that()`) -----------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-bootstrap.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-cpp-distributions.R:2'): (code run outside of `test_that()`) ---
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-cpp-distributions.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-cpp-obs_index.R:2'): (code run outside of `test_that()`) -------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-cpp-obs_index.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-ctstm.R:2'): (code run outside of `test_that()`) ---------------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-ctstm.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-distributions.R:2'): (code run outside of `test_that()`) -------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-distributions.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-hesim_data.R:2'): (code run outside of `test_that()`) ----------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-hesim_data.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-input_mats.R:2'): (code run outside of `test_that()`) ----------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-input_mats.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-model-fits.R:2'): (code run outside of `test_that()`) ----------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-model-fits.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-params_surv.R:2'): (code run outside of `test_that()`) ---------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-params_surv.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-params_surv_list.R:2'): (code run outside of `test_that()`) ----
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-params_surv_list.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-psm.R:2'): (code run outside of `test_that()`) -----------------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-psm.R:2:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error ('test-rand.R:4'): (code run outside of `test_that()`) ----------------
  Error: package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library("flexsurv") at test-rand.R:4:0
   2.   \-base::tryCatch(...)
   3.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 447 ]
  Error: Test failures
  Execution halted