Running ‘testthat.R’ [40s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(heemod)
  > 
  > test_check("heemod")
  I: detected use of 'state_time', expanding states: A, B.
  I: detected use of 'state_time', expanding states: A, B.
  I: detected use of 'state_time', expanding states: A, B.
  I: detected use of 'state_time', expanding states: A, B.
  I: detected use of 'state_time', expanding states: A, B.
  I: detected use of 'state_time', expanding state: A.
  I: detected use of 'state_time', expanding state: B.
  I: detected use of 'state_time', expanding state: C.
  Updating strategy 'I'...
  Updating strategy 'II'...
  Updating strategy 'I'...
  Updating strategy 'II'...
  No weights specified in update, using equal weights.
  Updating strategy 'I'...
  Updating strategy 'II'...
  Loading required namespace: diagram
  I: detected use of 'state_time', expanding state: A.
  I: detected use of 'state_time', expanding state: A.
  Updating strategy 'standard'...
  Updating strategy 'new'...
  Updating strategy 'standard'...
  Updating strategy 'new'...
  Cluster closed.
  Resampling strategy 'I'...
  Resampling strategy 'II'...
  Resampling strategy 'I'...
  Resampling strategy 'II'...
  Resampling strategy 'I'...
  Resampling strategy 'II'...
  Loading required namespace: logitnorm
  I: detected use of 'state_time', expanding state: X2.
  II: detected use of 'state_time', expanding state: X2.
  Resampling strategy 'I'...
  Resampling strategy 'II'...
  Loading required namespace: flexsurv
  Failed with error:  'there is no package called 'flexsurv''
  Resampling strategy 'standard'...
  Resampling strategy 'new'...
  Updating strategy 'standard'...
  Updating strategy 'new'...
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 393 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • empty test (1): 'test_starting_values.R:200:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_part_surv.R:1:1'): (code run outside of `test_that()`) ─────────
  <packageNotFoundError/error/condition>
  Error in `library(flexsurv)`: there is no package called 'flexsurv'
  Backtrace:
      ▆
   1. └─base::library(flexsurv) at test_part_surv.R:1:1
  ── Error ('test_surv_eval.R:1:1'): (code run outside of `test_that()`) ─────────
  <packageNotFoundError/error/condition>
  Error in `library(flexsurv)`: there is no package called 'flexsurv'
  Backtrace:
      ▆
   1. └─base::library(flexsurv) at test_surv_eval.R:1:1
  ── Error ('test_surv_psa.R:7:1'): (code run outside of `test_that()`) ──────────
  Error in `define_surv_dist(distribution = "weibullPH", shape = 1)`: 'flexsurv' package required.
  Backtrace:
      ▆
   1. └─heemod::define_surv_dist(distribution = "weibullPH", shape = 1) at test_surv_psa.R:7:1
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 393 ]
  Error: Test failures
  Execution halted