Running ‘testthat.R’ [278s/378s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("checkmate")
  +   library("testthat")
  +   library("mlr3")
  +   test_check("mlr3")
  + }
  Loading required namespace: Matrix
  ERROR [16:23:45.250] [mlr3] predict: Error from classif.debug->predict()
  ERROR [16:24:44.716] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:44.816] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:44.920] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:45.721] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:45.818] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:45.935] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:46.486] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:46.572] [mlr3] train: Error from classif.debug->train()
  ERROR [16:24:46.654] [mlr3] train: Error from classif.debug->train()
  WARN  [16:25:35.072] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:35.139] [mlr3] train: Error from classif.debug->train()
  WARN  [16:25:35.308] [mlr3] predict: Warning from classif.debug->predict()
  ERROR [16:25:35.484] [mlr3] predict: Error from classif.debug->predict()
  WARN  [16:25:35.913] [mlr3] train: Warning from classif.debug->train()
  WARN  [16:25:35.981] [mlr3] train: Warning from classif.debug->train()
  WARN  [16:25:36.058] [mlr3] train: Warning from classif.debug->train()
  WARN  [16:25:36.274] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:36.303] [mlr3] predict: Error from classif.debug->predict()
  WARN  [16:25:36.351] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:36.378] [mlr3] predict: Error from classif.debug->predict()
  WARN  [16:25:36.420] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:36.461] [mlr3] predict: Error from classif.debug->predict()
  WARN  [16:25:36.999] [mlr3] train: Warning from classif.debug->train()
  WARN  [16:25:37.066] [mlr3] train: Warning from classif.debug->train()
  WARN  [16:25:37.134] [mlr3] train: Warning from classif.debug->train()
  WARN  [16:25:37.410] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:37.437] [mlr3] predict: Error from classif.debug->predict()
  WARN  [16:25:37.479] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:37.508] [mlr3] predict: Error from classif.debug->predict()
  WARN  [16:25:37.569] [mlr3] train: Warning from classif.debug->train()
  ERROR [16:25:37.591] [mlr3] predict: Error from classif.debug->predict()
  ERROR [16:25:40.790] [mlr3] train: Error from classif.debug->train()
  ERROR [16:25:41.343] [mlr3] predict: Error from classif.debug->predict()
  ERROR [16:25:42.084] [mlr3] predict: Error from classif.debug->predict()
  ERROR [16:25:42.219] [mlr3] predict: Error from classif.debug->predict()
  ERROR [16:25:42.354] [mlr3] predict: Error from classif.debug->predict()
  ERROR [16:27:55.442] [mlr3] train: Error from classif.debug->train()
  [ FAIL 13 | WARN 11 | SKIP 3 | PASS 13092 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test_Measure.R:128:3', 'test_parallel.R:91:3'
  • distr6 cannot be loaded (1): 'test_PredictionRegr.R:54:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_Measure.R:56:3'): check_prerequisites / task_properties ────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_Measure.R:56: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_PredictionClassif.R:144:3'): as_prediction_classif ─────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_PredictionClassif.R:144: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_Resampling.R:124:3'): custom_cv ────────────────────────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_Resampling.R:124: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_Resampling.R:153:3'): loo with groups ──────────────────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_Resampling.R:153: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_Task.R:111:3'): Task rbind ─────────────────────────────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_Task.R:111: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_Task.R:457:3'): set_levels ─────────────────────────────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_Task.R:457: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_convert_task.R:189:3'): formula converters ─────────────────────
  Error in `isTRUE(lhs)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. ├─mlr3::as_task_classif(species ~ ., penguins) at test_convert_task.R:189:3
   2. └─mlr3:::as_task_classif.formula(species ~ ., penguins)
   3.   └─checkmate::assert_data_frame(data)
   4.     └─checkmate::checkDataFrame(...)
   5.       └─... %and% checkListTypes(x, types)
   6.         └─base::isTRUE(lhs)
  ── Error ('test_mlr_learners_classif_featureless.R:24:3'): Predict with prob ───
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_mlr_learners_classif_featureless.R:24: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_mlr_measures_similarity.R:1:1'): (code run outside of `test_that()`) ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_mlr_measures_similarity.R:1:1
   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_mlr_resampling_custom.R:7:3'): custom_cv accepts external factor ──
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. └─mlr3::tsk("penguins") at test_mlr_resampling_custom.R:7: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_mlr_tasks.R:2:3'): mlr_tasks ───────────────────────────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
       ▆
    1. └─global expect_dictionary(mlr_tasks, min_items = 1L) at test_mlr_tasks.R:2:3
    2.   ├─checkmate::expect_data_table(...)
    3.   │ └─checkmate::checkDataTable(...)
    4.   ├─data.table::as.data.table(d)
    5.   └─mlr3:::as.data.table.DictionaryTask(d)
    6.     ├─data.table::setkeyv(...)
    7.     │ └─data.table::is.data.table(x)
    8.     └─mlr3misc::map_dtr(...)
    9.       ├─data.table::rbindlist(...)
   10.       ├─base::unname(map(.x, .f, ...))
   11.       └─mlr3misc::map(.x, .f, ...)
   12.         └─base::lapply(.x, .f, ...)
   13.           └─mlr3 (local) FUN(X[[i]], ...)
   14.             ├─base::tryCatch(x$get(key), missingDefaultError = function(e) NULL)
   15.             │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.             │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.             │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   18.             └─x$get(key)
   19.               ├─mlr3misc::invoke(dictionary_get, self = self, key = key, .args = args)
   20.               │ └─base::eval.parent(expr, n = 1L)
   21.               │   └─base::eval(expr, p)
   22.               │     └─base::eval(expr, p)
   23.               └─mlr3misc:::dictionary_get(self = self, key = key)
   24.                 └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   25.                   ├─base::do.call(constructor, cargs)
   26.                   └─mlr3 (local) `<fn>`()
   27.                     └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_mlr_tasks.R:18:5'): load_x ─────────────────────────────────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
      ▆
   1. ├─global expect_task_supervised(fun()) at test_mlr_tasks.R:18:5
   2. │ └─checkmate::expect_r6(task, "TaskSupervised", cloneable = TRUE)
   3. │   └─checkmate::checkR6(...)
   4. └─mlr3 (local) fun()
   5.   └─data.table::as.data.table(palmerpenguins::penguins)
  ── Error ('test_mlr_tasks.R:32:3'): as.data.table(..., objects = TRUE) ─────────
  Error in `as.data.table(palmerpenguins::penguins)`: cannot return a promise (PROMSXP) object
  Backtrace:
       ▆
    1. ├─data.table::as.data.table(mlr_tasks, objects = TRUE) at test_mlr_tasks.R:32:3
    2. └─mlr3:::as.data.table.DictionaryTask(mlr_tasks, objects = TRUE)
    3.   ├─data.table::setkeyv(...)
    4.   │ └─data.table::is.data.table(x)
    5.   └─mlr3misc::map_dtr(...)
    6.     ├─data.table::rbindlist(...)
    7.     ├─base::unname(map(.x, .f, ...))
    8.     └─mlr3misc::map(.x, .f, ...)
    9.       └─base::lapply(.x, .f, ...)
   10.         └─mlr3 (local) FUN(X[[i]], ...)
   11.           ├─base::tryCatch(x$get(key), missingDefaultError = function(e) NULL)
   12.           │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.           │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.           │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   15.           └─x$get(key)
   16.             ├─mlr3misc::invoke(dictionary_get, self = self, key = key, .args = args)
   17.             │ └─base::eval.parent(expr, n = 1L)
   18.             │   └─base::eval(expr, p)
   19.             │     └─base::eval(expr, p)
   20.             └─mlr3misc:::dictionary_get(self = self, key = key)
   21.               └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   22.                 ├─base::do.call(constructor, cargs)
   23.                 └─mlr3 (local) `<fn>`()
   24.                   └─data.table::as.data.table(palmerpenguins::penguins)
  
  [ FAIL 13 | WARN 11 | SKIP 3 | PASS 13092 ]
  Error: Test failures
  Execution halted