Running ‘testthat.R’ [81s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("mlr3viz")
  +   test_check("mlr3viz")
  + }
  Starting 2 test processes.
  > test_EnsembleFSResult.R: Loading required namespace: vdiffr
  Saving _problems/test_BenchmarkResult-7.R
  > test_Filter.R: Loading required namespace: vdiffr
  Saving _problems/test_LearnerClassif-6.R
  > test_OptimInstanceSingleCrit.R: Loading required package: paradox
  > test_PredictionRegr.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
  Saving _problems/test_ResampleResult-7.R
  > test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
  > test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
  > test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
  > test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
  Saving _problems/test_plot_learner_prediction-8.R
  Saving _problems/test_plot_learner_prediction-41.R
  Saving _problems/test_plot_learner_prediction-51.R
  Saving _problems/test_TuningInstanceSingleCrit-24.R
  [ FAIL 7 | WARN 51 | SKIP 20 | PASS 63 ]
  
  ══ Skipped tests (20) ══════════════════════════════════════════════════════════
  • On CRAN (20): 'test_Filter.R:3:1', 'test_LearnerClassif.R:11:1',
    'test_EnsembleFSResult.R:4:1', 'test_LearnerClassifRpart.R:6:1',
    'test_LearnerClassifCVGlmnet.R:8:1', 'test_LearnerClasssifGlmnet.R:8:1',
    'test_LearnerClustHierarchical.R:7:3', 'test_LearnerRegrCVGlmnet.R:8:1',
    'test_LearnerRegr.R:1:1', 'test_LearnerRegr.R:11:1',
    'test_LearnerRegr.R:21:1', 'test_LearnerRegrGlmnet.R:7:1',
    'test_LearnerRegrRpart.R:6:1', 'test_PredictionClassif.R:8:1',
    'test_PredictionClust.R:8:3', 'test_PredictionRegr.R:3:1',
    'test_OptimInstanceSingleCrit.R:35:1', 'test_TaskClust.R:4:1',
    'test_TaskRegr.R:3:1', 'test_TaskClassif.R:3:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_BenchmarkResult.R:7:1'): (code run outside of `test_that()`) ───
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3::benchmark(mlr3::benchmark_grid(tasks, learner, resampling)) at test_BenchmarkResult.R:7:1
   2.   └─ResultData$new(grid, data_extra, store_backends = store_backends)
   3.     └─mlr3 (local) initialize(...)
   4.       └─mlr3:::.__ResultData__initialize(...)
   5.         ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_LearnerClassif.R:6:3'): autoplot.PredictionClassif decision boundary probability ──
  Error in ``[.data.table`(grid, , `:=`(".prob.response", .SD[, paste0("prob.", get("response")), with = FALSE]), by = "response")`: attempt access index 7/7 in VECTOR_ELT
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(learner, type = "prediction", task = task) at test_LearnerClassif.R:6:3
   2. ├─mlr3viz:::autoplot.LearnerClassifRpart(...)
   3. ├─base::NextMethod()
   4. └─mlr3viz:::autoplot.LearnerClassif(...)
   5.   └─mlr3viz:::predict_grid(...)
   6.     ├─...[]
   7.     └─data.table:::`[.data.table`(...)
  ── Error ('test_ResampleResult.R:7:1'): (code run outside of `test_that()`) ────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3::resample(task, learner, resampling) at test_ResampleResult.R:7:1
   2.   └─ResultData$new(data, data_extra, store_backends = store_backends)
   3.     └─mlr3 (local) initialize(...)
   4.       └─mlr3:::.__ResultData__initialize(...)
   5.         ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_plot_learner_prediction.R:8:3'): plot_learner_prediction.LearnerClassif ──
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3viz::plot_learner_prediction(learner, task, expand_range = 0.1) at test_plot_learner_prediction.R:8:3
   2.   └─mlr3::resample(...)
   3.     └─ResultData$new(data, data_extra, store_backends = store_backends)
   4.       └─mlr3 (local) initialize(...)
   5.         └─mlr3:::.__ResultData__initialize(...)
   6.           ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   7.           └─data.table:::`[.data.table`(...)
  ── Error ('test_plot_learner_prediction.R:41:3'): plot_learner_prediction.LearnerRegr 2d ──
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3viz::plot_learner_prediction(learner, task, expand_range = 0.1) at test_plot_learner_prediction.R:41:3
   2.   └─mlr3::resample(...)
   3.     └─ResultData$new(data, data_extra, store_backends = store_backends)
   4.       └─mlr3 (local) initialize(...)
   5.         └─mlr3:::.__ResultData__initialize(...)
   6.           ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   7.           └─data.table:::`[.data.table`(...)
  ── Error ('test_plot_learner_prediction.R:51:3'): plot_learner_prediction.LearnerRegr 1d ──
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3viz::plot_learner_prediction(learner, task, expand_range = 0.1) at test_plot_learner_prediction.R:51:3
   2.   └─mlr3::resample(...)
   3.     └─ResultData$new(data, data_extra, store_backends = store_backends)
   4.       └─mlr3 (local) initialize(...)
   5.         └─mlr3:::.__ResultData__initialize(...)
   6.           ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   7.           └─data.table:::`[.data.table`(...)
  ── Error ('test_TuningInstanceSingleCrit.R:24:1'): (code run outside of `test_that()`) ──
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
       ▆
    1. └─tuner$optimize(instance)
    2.   └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    3.     └─private$.optimizer$optimize(inst)
    4.       └─bbotk:::.__OptimizerBatch__optimize(...)
    5.         └─bbotk::optimize_batch_default(inst, self)
    6.           ├─base::tryCatch(...)
    7.           │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.           │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.           │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   10.           └─get_private(optimizer)$.optimize(instance)
   11.             └─bbotk:::.__OptimizerBatchRandomSearch__.optimize(...)
   12.               └─inst$eval_batch(design$data)
   13.                 └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   14.                   └─self$objective$eval_many(xss_trafoed)
   15.                     └─bbotk:::.__Objective__eval_many(...)
   16.                       ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   17.                       │ └─base::eval.parent(expr, n = 1L)
   18.                       │   └─base::eval(expr, p)
   19.                       │     └─base::eval(expr, p)
   20.                       └─private$.eval_many(xss = xss, resampling = `<list>`)
   21.                         └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   22.                           └─mlr3::benchmark(...)
   23.                             └─ResultData$new(grid, data_extra, store_backends = store_backends)
   24.                               └─mlr3 (local) initialize(...)
   25.                                 └─mlr3:::.__ResultData__initialize(...)
   26.                                   ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   27.                                   └─data.table:::`[.data.table`(...)
  
  [ FAIL 7 | WARN 51 | SKIP 20 | PASS 63 ]
  Deleting unused snapshots: 'BenchmarkResult/bmr-boxplot.svg',
  'BenchmarkResult/bmr-holdout-ci.svg', 'BenchmarkResult/bmr-holdout-roc.svg',
  'BenchmarkResult/bmr-prc.svg', 'BenchmarkResult/bmr-roc.svg',
  'LearnerClassif/learner-classif-prob.svg',
  'LearnerClustHierarchical/learner-clust-agnes.svg',
  'LearnerClustHierarchical/learner-clust-hclust.svg',
  'PredictionClust/predictionclust-pca.svg',
  'PredictionClust/predictionclust-scatter.svg',
  'PredictionClust/predictionclust-sil.svg',
  'ResampleResult/resampleresult-boxplot.svg',
  'ResampleResult/resampleresult-histogram.svg',
  'ResampleResult/resampleresult-prc.svg',
  'ResampleResult/resampleresult-roc.svg',
  'TuningInstanceSingleCrit/tisc-incumbent.svg',
  'TuningInstanceSingleCrit/tisc-marginal-01.svg',
  'TuningInstanceSingleCrit/tisc-marginal-02.svg', …,
  'plot_learner_prediction/learner-prediction-prob.svg', and
  'plot_learner_prediction/learner-prediction-response.svg'
  Error:
  ! Test failures.
  Execution halted