Running ‘test.R’ [33s/52s]
Running the tests in ‘tests/test.R’ failed.
Complete output:
  > library(testthat)
  > test_check('gemtc', filter="unit")
  Loading required package: gemtc
  Loading required package: coda
  [ FAIL 9 | WARN 8 | SKIP 0 | PASS 350 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-unit-relative.effect.R:4:3'): relative.effect outputs the correct parameters ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:4:3
  ── Error ('test-unit-relative.effect.R:28:3'): relative.effect generates the expected statistics ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:28:3
  ── Error ('test-unit-relative.effect.R:78:3'): relative.effect can be applied recursively ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:78:3
  ── Error ('test-unit-relative.effect.R:102:3'): rank.probability returns the right results ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:102:3
  ── Error ('test-unit-relative.effect.R:107:3'): rank.probability can be applied to a subset of parameters ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:107:3
  ── Error ('test-unit-relative.effect.R:121:3'): spanning.tree.mtc.result handles two-treatment case ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:121:3
  ── Error ('test-unit-relative.effect.R:134:3'): relative.effect is robust to missing sd.d ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:134:3
  ── Error ('test-unit-relative.effect.R:144:3'): relative.effect is robust to leading columns ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.R:144:3
  ── Error ('test-unit-relative.effect.table.R:4:3'): it works for the smoking example ──
  Error in `readRDS(system.file("extdata/luades-smoking-samples.rds", package = "gemtc"))`: 'parent' is not an environment
  Backtrace:
      ▆
   1. └─base::readRDS(...) at test-unit-relative.effect.table.R:4:3
  
  [ FAIL 9 | WARN 8 | SKIP 0 | PASS 350 ]
  Error: Test failures
  Execution halted