Running ‘testthat.R’ [591s/302s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate")
  +   library("mlr3tuning")
  +   test_check("mlr3tuning")
  + }
  Loading required package: mlr3
  Loading required package: paradox
  Starting 2 test processes
  [ FAIL 8 | WARN 7 | SKIP 1 | PASS 4310 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test_mlr_callbacks.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_AutoTuner.R:396:3'): AutoTuner importance method works ─────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
       ▆
    1. ├─at$train(tsk("penguins")) at test_AutoTuner.R:396:3
    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("penguins")
    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.         └─mlr3 (local) `<fn>`()
   13.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_AutoTuner.R:410:3'): AutoTuner selected_features method works ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
       ▆
    1. ├─at$train(tsk("penguins")) at test_AutoTuner.R:410:3
    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("penguins")
    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.         └─mlr3 (local) `<fn>`()
   13.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_AutoTuner.R:441:3'): AutoTuner works with instantiated resampling ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_AutoTuner.R:441:3
   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.         └─mlr3 (local) `<fn>`()
   7.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_AutoTuner.R:461:3'): AutoTuner errors when train set is not a subset of task ids ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_AutoTuner.R:461:3
   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.         └─mlr3 (local) `<fn>`()
   7.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_AutoTuner.R:488:3'): AutoTuner errors when second train set is not a subset of task ids ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_AutoTuner.R:488:3
   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.         └─mlr3 (local) `<fn>`()
   7.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_AutoTuner.R:515:3'): AutoTuner errors when test set is not a subset of task ids ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_AutoTuner.R:515:3
   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.         └─mlr3 (local) `<fn>`()
   7.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_AutoTuner.R:542:3'): AutoTuner errors when second test set is not a subset of task ids ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_AutoTuner.R:542:3
   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.         └─mlr3 (local) `<fn>`()
   7.           └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_extract_inner_tuning_results.R:131:3'): extract_inner_tuning_results returns tuning_instance ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
       ▆
    1. ├─mlr3::resample(tsk("penguins"), at, resampling_outer, store_models = TRUE) at test_extract_inner_tuning_results.R:131:3
    2. │ ├─mlr3::assert_task(as_task(task, clone = "task" %in% clone))
    3. │ │ └─checkmate::assert_class(task, "Task", .var.name = .var.name)
    4. │ │   └─checkmate::checkClass(x, classes, ordered, null.ok)
    5. │ └─mlr3::as_task(task, clone = "task" %in% clone)
    6. └─mlr3::tsk("penguins")
    7.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    8.     └─mlr3misc:::dictionary_get(dict, .key)
    9.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   10.         ├─base::do.call(constructor, cargs)
   11.         └─mlr3 (local) `<fn>`()
   12.           └─data.table::as.data.table(palmerpenguins::penguins)
  
  [ FAIL 8 | WARN 7 | SKIP 1 | PASS 4310 ]
  Error: Test failures
  Execution halted