Running ‘testthat.R’ [57s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(hesim)
  > 
  > test_check("hesim")
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  Error in flexsurvreg(formula = Surv(futime, fustat) ~ age, data = data_i,  : 
    Initial values for parameters 1,2 out of range
  ── 1. Failure: Simulate costs and QALYs (@test-ctstm.R#379)  ───────────────────
  all(costs[category == "drugs", costs] == 0) isn't true.
  
  ── 2. Failure: Simulate costs and QALYs (@test-ctstm.R#381)  ───────────────────
  all(costs$costs == 0) isn't true.
  
  sample = 1
  sample = 2
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 725 SKIPPED: 0 FAILED: 2
  1. Failure: Simulate costs and QALYs (@test-ctstm.R#379) 
  2. Failure: Simulate costs and QALYs (@test-ctstm.R#381) 
  
  Error: testthat unit tests failed
  Execution halted