Running ‘testthat.R’ [141s/207s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(mlr3learners)
  +   test_check("mlr3learners")
  + }
  [19:14:15] WARNING: amalgamation/../src/learner.cc:1061: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [19:14:16] WARNING: amalgamation/../src/learner.cc:1061: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'binary:logistic' was changed from 'error' to 'logloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_surv_ranger.R:14:3): importance ─────────────────────────────────
  Error: no applicable method for 'as_data_backend' applied to an object of class "list"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test_surv_ranger.R:14:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─learner$train(tsk("rats"))
    8. │ └─mlr3:::.__Learner__train(...)
    9. │   ├─mlr3::assert_task(as_task(task))
   10. │   │ └─checkmate::assert_class(task, "Task", .var.name = .var.name)
   11. │   │   └─checkmate::checkClass(x, classes, ordered, null.ok)
   12. │   └─mlr3::as_task(task)
   13. └─mlr3::tsk("rats")
   14.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   15.     └─mlr3misc:::dictionary_get(dict, .key)
   16.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   17.         ├─base::do.call(constructor, cargs)
   18.         └─(function () ...
   19.           └─mlr3::as_data_backend(data)
  
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 394 ]
  Error: Test failures
  Execution halted