Running ‘testthat.R’ [97s/149s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate) # for more expect_*() functions
  > library(mlr3proba)
  > 
  > test_check("mlr3proba")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_TaskSurv.R:2:3): Task duplicates rows ───────────────────────────
  Error: Assertion on 'target' failed: Must be a subset of {'sex','status'}, but is {'time','status'}.
  Backtrace:
       █
    1. └─mlr3::tsk("lung") test_TaskSurv.R:2:2
    2.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    3.     └─mlr3misc:::dictionary_get(dict, .key)
    4.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
    5.         ├─base::do.call(constructor, cargs)
    6.         └─(function () ...
    7.           └─TaskSurv$new("lung", b, time = "time", event = "status")
    8.             └─mlr3proba:::initialize(...)
    9.               └─mlr3proba:::.__TaskSurv__initialize(...)
   10.                 └─super$initialize(...)
   11.                   └─mlr3:::.__TaskSupervised__initialize(...)
   12.                     └─checkmate::assert_subset(target, self$col_roles$feature)
   13.                       └─checkmate::makeAssertion(x, res, .var.name, add)
   14.                         └─checkmate:::mstop(...)
  ── Error (test_mlr_learners_surv_rpart.R:13:3): importance/selected ────────────
  Error: no applicable method for 'as_data_backend' applied to an object of class "list"
  Backtrace:
       █
    1. ├─learner$train(tsk("rats")) test_mlr_learners_surv_rpart.R:13:2
    2. │ └─mlr3:::.__Learner__train(...)
    3. │   ├─mlr3::assert_task(as_task(task))
    4. │   │ └─checkmate::assert_class(task, "Task", .var.name = .var.name)
    5. │   │   └─checkmate::checkClass(x, classes, ordered, null.ok)
    6. │   └─mlr3::as_task(task)
    7. └─mlr3::tsk("rats")
    8.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    9.     └─mlr3misc:::dictionary_get(dict, .key)
   10.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   11.         ├─base::do.call(constructor, cargs)
   12.         └─(function () ...
   13.           └─mlr3::as_data_backend(data)
  ── Error (test_resample.R:4:3): resample-step ──────────────────────────────────
  Error: no applicable method for 'as_data_backend' applied to an object of class "list"
  Backtrace:
      █
   1. └─mlr_tasks$get("rats") test_resample.R:4:2
   2.   └─mlr3misc:::dictionary_get(self, key, ...)
   3.     └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   4.       ├─base::do.call(constructor, cargs)
   5.       └─(function () ...
   6.         └─mlr3::as_data_backend(data)
  
  [ FAIL 3 | WARN 4 | SKIP 2 | PASS 1382 ]
  Error: Test failures
  Execution halted