Running ‘testthat.R’ [212s/214s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(censored)
  Loading required package: parsnip
  Loading required package: survival
  > 
  > test_check("censored")
  [ FAIL 5 | WARN 0 | SKIP 10 | PASS 616 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (10)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-decision_tree-rpart.R:5:3'): model object ──────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'pec'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-decision_tree-rpart.R:5:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-decision_tree-rpart.R:25:3'): time predictions ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'pec'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-decision_tree-rpart.R:25:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-decision_tree-rpart.R:51:3'): survival predictions ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'pec'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-decision_tree-rpart.R:51:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-decision_tree-rpart.R:111:3'): `fix_xy()` works ────────────────
  Error in `check_installs(object)`: This engine requires some package installs: 'pec'
  Backtrace:
      ▆
   1. ├─generics::fit(spec, Surv(time, status) ~ age + ph.ecog, data = lung) at test-decision_tree-rpart.R:111:2
   2. └─parsnip::fit.model_spec(...)
   3.   └─parsnip:::check_installs(object)
   4.     └─rlang::abort(...)
  ── Error ('test-proportional_hazards-survival.R:172:3'): survival predictions without strata ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'pec'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-proportional_hazards-survival.R:172:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 5 | WARN 0 | SKIP 10 | PASS 616 ]
  Error: Test failures
  Execution halted