Running ‘testthat.R’ [175s/196s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mlr3proba)
  > 
  > test_check("mlr3proba")
  ── 1. Error: Internally constructed Prediction (@test_PredictionSurv.R#12)  ────
  there is no package called 'pec'
  Backtrace:
    1. lrn$train(task)
    2. mlr3:::learner_train(self, task, row_ids)
    3. mlr3misc::encapsulate(...)
    8. mlr3:::.f(learner = <environment>, task = <environment>)
    9. learner$train_internal(task = task)
   14. pec::pecRpart
   15. base::getExportedValue(pkg, name)
   16. base::asNamespace(ns)
   17. base::getNamespace(ns)
   18. base::loadNamespace(name)
   19. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   20. base:::withOneRestart(expr, restarts[[1L]])
   21. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: c (@test_PredictionSurv.R#20)  ────────────────────────────────────
  there is no package called 'pec'
  Backtrace:
    1. mlr3::resample(task, lrn, resampling)
    2. base::lapply(...)
    3. mlr3:::FUN(X[[i]], ...)
    4. mlr3:::learner_train(learner$clone(), task, sets[["train"]])
    5. mlr3misc::encapsulate(...)
   10. mlr3:::.f(learner = <environment>, task = <environment>)
   11. learner$train_internal(task = task)
   16. pec::pecRpart
   17. base::getExportedValue(pkg, name)
   18. base::asNamespace(ns)
   19. base::getNamespace(ns)
   20. base::loadNamespace(name)
   21. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   22. base:::withOneRestart(expr, restarts[[1L]])
   23. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: manualtest (@test_mlr_learners_surv_coxph.R#25)  ──────────────────
  there is no package called 'riskRegression'
  Backtrace:
   1. riskRegression::predictCox
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  123
  123456
  ── 4. Failure: autotest (@test_mlr_learners_surv_rpart.R#7)  ───────────────────
  `result` isn't true.
  [train()] learner 'surv.rpart:crank' on task 'feat_single_logical' failed: train log has errors: there is no package called 'pec'
  
  ── 5. Error: importance/selected (@test_mlr_learners_surv_rpart.R#15)  ─────────
  there is no package called 'pec'
  Backtrace:
    1. learner$train(tsk("rats"))
    2. mlr3:::learner_train(self, task, row_ids)
    3. mlr3misc::encapsulate(...)
    8. mlr3:::.f(learner = <environment>, task = <environment>)
    9. learner$train_internal(task = task)
   14. pec::pecRpart
   15. base::getExportedValue(pkg, name)
   16. base::asNamespace(ns)
   17. base::getNamespace(ns)
   18. base::loadNamespace(name)
   19. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   20. base:::withOneRestart(expr, restarts[[1L]])
   21. base:::doWithOneRestart(return(expr), restart)
  
  ── 6. Error: train, predict, score (@test_train_predict_score.R#7)  ────────────
  there is no package called 'pec'
  Backtrace:
    1. learner$train(task)
    2. mlr3:::learner_train(self, task, row_ids)
    3. mlr3misc::encapsulate(...)
    8. mlr3:::.f(learner = <environment>, task = <environment>)
    9. learner$train_internal(task = task)
   14. pec::pecRpart
   15. base::getExportedValue(pkg, name)
   16. base::asNamespace(ns)
   17. base::getNamespace(ns)
   18. base::loadNamespace(name)
   19. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   20. base:::withOneRestart(expr, restarts[[1L]])
   21. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1060 | SKIPPED: 6 | WARNINGS: 1 | FAILED: 6 ]
  1. Error: Internally constructed Prediction (@test_PredictionSurv.R#12) 
  2. Error: c (@test_PredictionSurv.R#20) 
  3. Error: manualtest (@test_mlr_learners_surv_coxph.R#25) 
  4. Failure: autotest (@test_mlr_learners_surv_rpart.R#7) 
  5. Error: importance/selected (@test_mlr_learners_surv_rpart.R#15) 
  6. Error: train, predict, score (@test_train_predict_score.R#7) 
  
  Error: testthat unit tests failed
  Execution halted