Running 'testthat.r' [56s]
Running the tests in 'tests/testthat.r' failed.
Complete output:
  > library(testthat)
  > library(openVA)
  ────────────────────── Attaching packages for openVA 1.1.1 ─────────────────────
  ✔ InSilicoVA 1.4.0
  ✔ InterVA4   1.7.6
  ✔ InterVA5   1.1.3
  ✔ Tariff     1.0.5
  ── Optional packages (require manual installation if not attached) ─────────────
  × nbc4va     
  If you need to use these methods, you may need to load or install the packages: nbc4va.
  > 
  > test_check("openVA")
  InSilicoVA Sampler Initiated, 200 Iterations to Sample
  ...........
  Iteration: 100 
  Sub-population 0 acceptance ratio: 0,58 
  0,02min elapsed, 0,02min remaining 
  .........
  Overall acceptance ratio
  Sub-population 0 : 0,5800 
  Organizing output, might take a moment...
  ..........10% completed
  ..........20% completed
  ..........30% completed
  ..........40% completed
  ..........50% completed
  ..........60% completed
  ..........70% completed
  ..........80% completed
  ..........90% completed
  ..........100% completed
  .10% completed
  .20% completed
  .30% completed
  .40% completed
  .50% completed
  .60% completed
  .70% completed
  .80% completed
  .90% completed
  .100% completed
  100% completed
  
  Start re-sampling for significant Tariff cells
  Calculating ranks
  The first column is assumed to be ID by default
  InSilicoVA Sampler Initiated, 200 Iterations to Sample
  ...........
  Iteration: 100 
  Sub-population 0 acceptance ratio: 0,58 
  0,01min elapsed, 0,01min remaining 
  .........
  Overall acceptance ratio
  Sub-population 0 : 0,5800 
  Organizing output, might take a moment...
  ..........10% completed
  ..........20% completed
  ..........30% completed
  ..........40% completed
  ..........50% completed
  ..........60% completed
  ..........70% completed
  ..........80% completed
  ..........90% completed
  ..........100% completed
  
  Start re-sampling for significant Tariff cells
  Calculating ranks
  ..........10% completed
  ..........20% completed
  ..........30% completed
  ..........40% completed
  ..........50% completed
  ..........60% completed
  ..........70% completed
  ..........80% completed
  ..........90% completed
  ..........100% completed
  [ FAIL 4 | WARN 1 | SKIP 0 | PASS 885 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('tests.convertdata.r:53:3'): ConvertData - getPHMRC_url ────────────
  "adult" not equal to tolower(phmrc_adult$module[1]).
  Lengths differ: 1 is not 0
  ── Failure ('tests.convertdata.r:54:3'): ConvertData - getPHMRC_url ────────────
  "child" not equal to tolower(phmrc_child$module[1]).
  Lengths differ: 1 is not 0
  ── Failure ('tests.convertdata.r:55:3'): ConvertData - getPHMRC_url ────────────
  "neonate" not equal to tolower(phmrc_neonate$module[1]).
  Lengths differ: 1 is not 0
  ── Error ('tests.convertdata.r:60:1'): (code run outside of `test_that()`) ─────
  Error in `phmrc_adult_convert(input, input.test, cause = cause, type = cutoff)`: No cause of death column find in data
  Backtrace:
      ▆
   1. └─openVA::ConvertData.phmrc(phmrc_adult, phmrc.type = "adult") at tests.convertdata.r:60:1
   2.   └─openVA:::phmrc_adult_convert(...)
  
  [ FAIL 4 | WARN 1 | SKIP 0 | PASS 885 ]
  Error: Test failures
  Execution halted