Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(hesim)
  > 
  > test_check("hesim")
  -- 1. Error: (unknown) (@test-bootstrap.R#2)  ----------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 2. Error: (unknown) (@test-cpp-distributions.R#2)  --------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 3. Error: (unknown) (@test-cpp-obs_index.R#2)  ------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 4. Error: (unknown) (@test-ctstm.R#2)  --------------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 5. Error: (unknown) (@test-distributions.R#2)  ------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 6. Error: (unknown) (@test-hesim_data.R#2)  ---------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 7. Error: (unknown) (@test-input_mats.R#2)  ---------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 8. Error: (unknown) (@test-model-fits.R#2)  ---------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 9. Error: (unknown) (@test-params.R#2)  -------------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 10. Error: (unknown) (@test-psm.R#2)  ---------------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  -- 11. Error: (unknown) (@test-rand.R#4)  --------------------------------------
  package or namespace load failed for 'flexsurv' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library("flexsurv")
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  == testthat results  ===========================================================
  [ OK: 206 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 11 ]
  1. Error: (unknown) (@test-bootstrap.R#2) 
  2. Error: (unknown) (@test-cpp-distributions.R#2) 
  3. Error: (unknown) (@test-cpp-obs_index.R#2) 
  4. Error: (unknown) (@test-ctstm.R#2) 
  5. Error: (unknown) (@test-distributions.R#2) 
  6. Error: (unknown) (@test-hesim_data.R#2) 
  7. Error: (unknown) (@test-input_mats.R#2) 
  8. Error: (unknown) (@test-model-fits.R#2) 
  9. Error: (unknown) (@test-params.R#2) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted