Running ‘testthat.R’ [110s/203s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate") # for more expect_*() functions
  +   library("mlr3proba")
  +   test_check("mlr3proba")
  + }
  Loading required package: mlr3
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 1449 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  • survAUC cannot be loaded (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_pipelines.R:46:3): survbagging ──────────────────────────────────
  Error in `nc == 1 && length(cnms) == nc`: 'length = 2' in coercion to 'logical(1)'
  This happened PipeOp survavg's $predict()
  Backtrace:
       ▆
    1. ├─pipe$predict(task) at test_pipelines.R:46:2
    2. │ └─mlr3:::.__Learner__predict(...)
    3. │   └─mlr3:::learner_predict(self, task, row_ids)
    4. │     └─mlr3misc::encapsulate(...)
    5. │       ├─mlr3misc::invoke(...)
    6. │       │ └─base::eval.parent(expr, n = 1L)
    7. │       │   └─base::eval(expr, p)
    8. │       │     └─base::eval(expr, p)
    9. │       └─mlr3 .f(task = `<TaskSurv>`, learner = `<GrphLrnr>`)
   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. │                       ├─base::withCallingHandlers(...)
   18. │                       └─private$.predict(input)
   19. │                         └─mlr3pipelines:::.__PipeOpEnsemble__.predict(...)
   20. │                           └─private$weighted_avg_predictions(inputs, weights, row_ids, truth)
   21. │                             └─mlr3proba:::.__PipeOpSurvAvg__weighted_avg_predictions(...)
   22. │                               └─distr6::mixMatrix(distr)
   23. │                                 └─distr6:::.merge_matpdf_cols(lapply(mds, gprm, "pdf"))
   24. └─base::.handleSimpleError(...)
   25.   └─mlr3pipelines h(simpleError(msg, call))
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 1449 ]
  Error: Test failures
  Execution halted