Running ‘testthat.R’ [123s/260s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("mlr3db")
  +   test_check("mlr3db")
  + }
  Loading required package: mlr3
  Loading required namespace: RSQLite
  Loading required namespace: RSQLite
  Saving _problems/test_train_predict_dplyr-20.R
  Saving _problems/test_train_predict_duckdb-18.R
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 998 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • {polars} is not installed (3): 'test_as_polars_backend.R:1:1',
    'test_polars.R:1:1', 'test_train_predict_polars.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_train_predict_dplyr.R:20:5'): resample works ───────────────────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. ├─global with_future(...) at test_train_predict_dplyr.R:19:3
   2. │ └─base::force(expr)
   3. └─mlr3::resample(task, learner, mlr3::rsmp("cv", folds = 3)) at test_train_predict_dplyr.R:20:5
   4.   └─ResultData$new(data, data_extra, store_backends = store_backends)
   5.     └─mlr3 (local) initialize(...)
   6.       └─mlr3:::.__ResultData__initialize(...)
   7.         ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   8.         └─data.table:::`[.data.table`(...)
  ── Error ('test_train_predict_duckdb.R:18:5'): resample works ──────────────────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. ├─global with_future(...) at test_train_predict_duckdb.R:17:3
   2. │ └─base::force(expr)
   3. └─mlr3::resample(task, learner, mlr3::rsmp("cv", folds = 3)) at test_train_predict_duckdb.R:18:5
   4.   └─ResultData$new(data, data_extra, store_backends = store_backends)
   5.     └─mlr3 (local) initialize(...)
   6.       └─mlr3:::.__ResultData__initialize(...)
   7.         ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   8.         └─data.table:::`[.data.table`(...)
  
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 998 ]
  Error:
  ! Test failures.
  Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted