Running ‘testthat.R’ [22s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate) # for more expect_*() functions
  > library(mlr3proba)
  > 
  > test_check("mlr3proba")
  ── 1. Failure: Construction (@test_PredictionDens.R#8)  ────────────────────────
  Check on data.table::as.data.table(p) isn't true.
  Must have exactly 0 rows, but has 70 rows
  
  ── 2. Error: Internally constructed Prediction (@test_PredictionDens.R#12)  ────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. lrn$train(task)$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 3. Error: c (@test_PredictionDens.R#20)  ────────────────────────────────────
  Assertion on 'li' failed: May only contain the following types: {PredictionData}, but element 1 has type 'list'.
  Backtrace:
   1. rr$predictions()
   2. mlr3:::.__ResampleResult__predictions(...)
   3. mlr3:::as_predictions(self$data$prediction, predict_sets)
   4. mlr3misc::map(...)
   5. base::lapply(.x, .f, ...)
   6. mlr3:::FUN(X[[i]], ...)
   7. checkmate::assert_list(li, "PredictionData")
   8. checkmate::makeAssertion(x, res, .var.name, add)
   9. checkmate:::mstop(...)
  
  ── 4. Failure: Construction (@test_PredictionSurv.R#5)  ────────────────────────
  Check on data.table::as.data.table(p) isn't true.
  Must have exactly 0 rows, but has 20 rows
  
  ── 5. Error: Internally constructed Prediction (@test_PredictionSurv.R#10)  ────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. lrn$train(task)$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 6. Error: c (@test_PredictionSurv.R#20)  ────────────────────────────────────
  Assertion on 'li' failed: May only contain the following types: {PredictionData}, but element 1 has type 'list'.
  Backtrace:
   1. rr$predictions()
   2. mlr3:::.__ResampleResult__predictions(...)
   3. mlr3:::as_predictions(self$data$prediction, predict_sets)
   4. mlr3misc::map(...)
   5. base::lapply(.x, .f, ...)
   6. mlr3:::FUN(X[[i]], ...)
   7. checkmate::assert_list(li, "PredictionData")
   8. checkmate::makeAssertion(x, res, .var.name, add)
   9. checkmate:::mstop(...)
  
  ── 7. Failure: autotest (@test_mlr_learners_density_hist.R#6)  ─────────────────
  `result` isn't true.
  [predict()] learner 'dens.hist:pdf' on task 'feat_single_logical' failed: Must inherit from class 'Prediction', but has class 'try-error'
  
  ── 8. Failure: autotest (@test_mlr_learners_density_kde.R#6)  ──────────────────
  `result` isn't true.
  [predict()] learner 'dens.kde:pdf' on task 'feat_single_logical' failed: Must inherit from class 'Prediction', but has class 'try-error'
  
  ── 9. Error: pdf (@test_mlr_learners_density_kde.R#18)  ────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. testthat::expect_equal(...)
   4. lrn$predict(task_test)
   5. mlr3:::.__Learner__predict(...)
   7. mlr3::check_prediction_data(pdata)
  
  ── 10. Error: bw (@test_mlr_learners_density_kde.R#32)  ────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. testthat::expect_equal(...)
   4. lrn$predict(task_test)
   5. mlr3:::.__Learner__predict(...)
   7. mlr3::check_prediction_data(pdata)
  
  ── 11. Failure: autotest (@test_mlr_learners_surv_coxph.R#8)  ──────────────────
  `result` isn't true.
  [predict()] learner 'surv.coxph:distr' on task 'feat_single_logical' failed: Must inherit from class 'Prediction', but has class 'try-error'
  
  ── 12. Failure: weights (@test_mlr_learners_surv_coxph.R#14)  ──────────────────
  `learner$train(task)` did not produce any warnings.
  
  ── 13. Failure: autotest (@test_mlr_learners_surv_kaplan.R#5)  ─────────────────
  `result` isn't true.
  [predict()] learner 'surv.kaplan:crank' on task 'feat_single_logical' failed: Must inherit from class 'Prediction', but has class 'try-error'
  
  ── 14. Failure: autotest (@test_mlr_learners_surv_rpart.R#5)  ──────────────────
  `result` isn't true.
  [predict()] learner 'surv.rpart:crank' on task 'feat_single_logical' failed: Must inherit from class 'Prediction', but has class 'try-error'
  
  ── 15. Error: (unknown) (@test_mlr_measures.R#4)  ──────────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. learner$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 16. Error: mlr_measures (@test_mlr_measures_dens.R#14)  ─────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. mlr_learners$get("dens.hist")$train(task)$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 17. Error: crankcompositor (@test_pipelines.R#10)  ──────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. pipe$predict(task)
    2. mlr3:::.__Learner__predict(...)
    3. mlr3:::learner_predict(self, task, row_ids)
    4. mlr3misc::encapsulate(...)
    9. mlr3:::.f(task = <environment>, learner = <environment>)
   10. get_private(learner)$.predict(task)
   11. mlr3pipelines:::.__GraphLearner__.predict(...)
   12. self$graph$predict(task)
   13. mlr3pipelines:::.__Graph__predict(...)
   14. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
   15. op[[fun]](input)
   16. mlr3pipelines:::.__PipeOp__predict(...)
   17. private$.predict(input)
   18. mlr3pipelines:::.__PipeOpLearner__.predict(...)
   19. private$.learner$predict(task)
   20. mlr3:::.__Learner__predict(...)
   22. mlr3::check_prediction_data(pdata)
  
  ── 18. Error: distrcompositor (@test_pipelines.R#21)  ──────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. pipe$predict(task)
    2. mlr3:::.__Learner__predict(...)
    3. mlr3:::learner_predict(self, task, row_ids)
    4. mlr3misc::encapsulate(...)
    9. mlr3:::.f(task = <environment>, learner = <environment>)
   10. get_private(learner)$.predict(task)
   11. mlr3pipelines:::.__GraphLearner__.predict(...)
   12. self$graph$predict(task)
   13. mlr3pipelines:::.__Graph__predict(...)
   14. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
   15. op[[fun]](input)
   16. mlr3pipelines:::.__PipeOp__predict(...)
   17. private$.predict(input)
   18. mlr3pipelines:::.__PipeOpLearner__.predict(...)
   19. private$.learner$predict(task)
   20. mlr3:::.__Learner__predict(...)
   22. mlr3::check_prediction_data(pdata)
  
  ── 19. Error: survaverager (@test_pipelines.R#35)  ─────────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. pipe$predict(task)
    2. mlr3:::.__Learner__predict(...)
    3. mlr3:::learner_predict(self, task, row_ids)
    4. mlr3misc::encapsulate(...)
    9. mlr3:::.f(task = <environment>, learner = <environment>)
   10. get_private(learner)$.predict(task)
   11. mlr3pipelines:::.__GraphLearner__.predict(...)
   12. self$graph$predict(task)
   13. mlr3pipelines:::.__Graph__predict(...)
   14. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
   15. op[[fun]](input)
   16. mlr3pipelines:::.__PipeOp__predict(...)
   17. private$.predict(input)
   18. mlr3pipelines:::.__PipeOpLearner__.predict(...)
   19. private$.learner$predict(task)
   20. mlr3:::.__Learner__predict(...)
   22. mlr3::check_prediction_data(pdata)
  
  ── 20. Error: survbagging (@test_pipelines.R#45)  ──────────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. pipe$predict(task)
    2. mlr3:::.__Learner__predict(...)
    3. mlr3:::learner_predict(self, task, row_ids)
    4. mlr3misc::encapsulate(...)
    9. mlr3:::.f(task = <environment>, learner = <environment>)
   10. get_private(learner)$.predict(task)
   11. mlr3pipelines:::.__GraphLearner__.predict(...)
   12. self$graph$predict(task)
   13. mlr3pipelines:::.__Graph__predict(...)
   14. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
   15. op[[fun]](input)
   16. mlr3pipelines:::.__PipeOp__predict(...)
   17. private$.predict(input)
   18. mlr3pipelines:::.__PipeOpLearner__.predict(...)
   19. private$.learner$predict(task)
   20. mlr3:::.__Learner__predict(...)
   22. mlr3::check_prediction_data(pdata)
  
  ── 21. Error: PipeOpCrankCompositor - estimate (@test_pipeop_crankcompositor.R#1
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. gr$predict(task)
    2. mlr3pipelines:::.__Graph__predict(...)
    3. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
    4. op[[fun]](input)
    5. mlr3pipelines:::.__PipeOp__predict(...)
    6. private$.predict(input)
    7. mlr3pipelines:::.__PipeOpLearner__.predict(...)
    8. private$.learner$predict(task)
    9. mlr3:::.__Learner__predict(...)
   11. mlr3::check_prediction_data(pdata)
  
  ── 22. Error: no params (@test_pipeop_crankcompositor.R#18)  ───────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. po$predict(list(lrn("surv.kaplan")$train(task)$predict(task)))
    7. lrn("surv.kaplan")$train(task)$predict(task)
    8. mlr3:::.__Learner__predict(...)
   10. mlr3::check_prediction_data(pdata)
  
  ── 23. Error: response (@test_pipeop_crankcompositor.R#26)  ────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. po$predict(list(lrn("surv.kaplan")$train(task)$predict(task)))
    7. lrn("surv.kaplan")$train(task)$predict(task)
    8. mlr3:::.__Learner__predict(...)
   10. mlr3::check_prediction_data(pdata)
  
  ── 24. Error: overwrite crank (@test_pipeop_crankcompositor.R#40)  ─────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. pl$train(task)$predict(task)
    2. mlr3:::.__Learner__predict(...)
    3. mlr3:::learner_predict(self, task, row_ids)
    4. mlr3misc::encapsulate(...)
    9. mlr3:::.f(task = <environment>, learner = <environment>)
   10. get_private(learner)$.predict(task)
   11. mlr3pipelines:::.__GraphLearner__.predict(...)
   12. self$graph$predict(task)
   13. mlr3pipelines:::.__Graph__predict(...)
   14. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
   15. op[[fun]](input)
   16. mlr3pipelines:::.__PipeOp__predict(...)
   17. private$.predict(input)
   18. mlr3pipelines:::.__PipeOpLearner__.predict(...)
   19. private$.learner$predict(task)
   20. mlr3:::.__Learner__predict(...)
   22. mlr3::check_prediction_data(pdata)
  
  ── 25. Error: overwrite response (@test_pipeop_crankcompositor.R#56)  ──────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. lrn("surv.kaplan")$train(task)$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 26. Error: PipeOpDistrCompositor - overwrite = FALSE (@test_pipeop_distrcompo
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. testthat::expect_equal(...)
    4. gr$predict(task)
    5. mlr3pipelines:::.__Graph__predict(...)
    6. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
    7. op[[fun]](input)
    8. mlr3pipelines:::.__PipeOp__predict(...)
    9. private$.predict(input)
   10. mlr3pipelines:::.__PipeOpLearner__.predict(...)
   11. private$.learner$predict(task)
   12. mlr3:::.__Learner__predict(...)
   14. mlr3::check_prediction_data(pdata)
  
  ── 27. Error: PipeOpDistrCompositor - overwrite = TRUE (@test_pipeop_distrcompos
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
    1. gr$predict(task)
    2. mlr3pipelines:::.__Graph__predict(...)
    3. mlr3pipelines:::graph_reduce(self, input, "predict", single_input)
    4. op[[fun]](input)
    5. mlr3pipelines:::.__PipeOp__predict(...)
    6. private$.predict(input)
    7. mlr3pipelines:::.__PipeOpLearner__.predict(...)
    8. private$.learner$predict(task)
    9. mlr3:::.__Learner__predict(...)
   11. mlr3::check_prediction_data(pdata)
  
  ── 28. Error: no params (@test_pipeop_distrcompositor.R#29)  ───────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. lrn("surv.kaplan")$train(task)$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 29. Error: (unknown) (@test_pipeop_survavg.R#7)  ────────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. lrn("surv.kaplan")$train(task)$predict(task)
   2. mlr3:::.__Learner__predict(...)
   4. mlr3::check_prediction_data(pdata)
  
  ── 30. Error: single-step (@test_single_step.R#10)  ────────────────────────────
  no applicable method for 'check_prediction_data' applied to an object of class "list"
  Backtrace:
   1. learner$predict_newdata(task = train_task, newdata = newdata)
   2. mlr3:::.__Learner__predict_newdata(...)
   3. self$predict(task$rbind(newdata))
   4. mlr3:::.__Learner__predict(...)
   6. mlr3::check_prediction_data(pdata)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 609 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 30 ]
  1. Failure: Construction (@test_PredictionDens.R#8) 
  2. Error: Internally constructed Prediction (@test_PredictionDens.R#12) 
  3. Error: c (@test_PredictionDens.R#20) 
  4. Failure: Construction (@test_PredictionSurv.R#5) 
  5. Error: Internally constructed Prediction (@test_PredictionSurv.R#10) 
  6. Error: c (@test_PredictionSurv.R#20) 
  7. Failure: autotest (@test_mlr_learners_density_hist.R#6) 
  8. Failure: autotest (@test_mlr_learners_density_kde.R#6) 
  9. Error: pdf (@test_mlr_learners_density_kde.R#18) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted