Running ‘testthat.R’ [258s/308s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(checkmate)
  +   library(mlr3mbo)
  +   test_check("mlr3mbo")
  + }
  Loading required package: mlr3tuning
  Loading required package: mlr3
  Loading required package: paradox
  
  Attaching package: 'mlr3mbo'
  
  The following object is masked from 'package:testthat':
  
      it
  
  Loading required namespace: mlr3learners
  Loading required namespace: DiceKriging
  Loading required namespace: rgenoud
  WARN  [17:17:16.511] [bbotk] Optimizer Error.
  Saving _problems/test_ResultAssignerArchive-79.R
  Saving _problems/test_ResultAssignerSurrogate-110.R
  Saving _problems/test_TunerMbo-52.R
  Saving _problems/test_TunerMbo-79.R
  Saving _problems/test_TunerMbo-143.R
  Saving _problems/test_TunerMbo-158.R
  [ FAIL 6 | WARN 2 | SKIP 18 | PASS 1043 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • On CRAN (17): 'test_AcqFunctionEHVIGH.R:35:3',
    'test_AcqFunctionStochasticCB.R:2:3', 'test_AcqFunctionStochasticCB.R:30:3',
    'test_AcqFunctionStochasticCB.R:59:3', 'test_AcqFunctionStochasticCB.R:89:3',
    'test_AcqFunctionStochasticCB.R:119:3', 'test_AcqFunctionStochasticEI.R:2:3',
    'test_AcqFunctionStochasticEI.R:31:3', 'test_AcqFunctionStochasticEI.R:60:3',
    'test_OptimizerADBO.R:2:3', 'test_OptimizerAsyncMbo.R:2:3',
    'test_OptimizerAsyncMbo.R:24:3', 'test_OptimizerMbo.R:2:3',
    'test_ResultAssignerSurrogate.R:16:3', 'test_TunerADBO.R:2:3',
    'test_TunerAsyncMbo.R:2:3', 'test_TunerMbo.R:2:3'
  • empty test (1): 'test_bayesopt_ego.R:55:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ResultAssignerArchive.R:79:3'): ResultAssignerArchive passes internal tuned values ──
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─checkmate::expect_data_table(tuner$optimize(instance), nrows = 1L) at test_ResultAssignerArchive.R:79:3
    2. │ └─checkmate::checkDataTable(...)
    3. └─tuner$optimize(instance)
    4.   └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    5.     └─private$.optimizer$optimize(inst)
    6.       └─mlr3mbo:::.__OptimizerMbo__optimize(...)
    7.         └─bbotk::optimize_batch_default(inst, self)
    8.           ├─base::tryCatch(...)
    9.           │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.           │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.           │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.           └─get_private(optimizer)$.optimize(instance)
   13.             └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   14.               ├─mlr3misc::invoke(...)
   15.               │ └─base::eval.parent(expr, n = 1L)
   16.               │   └─base::eval(expr, p)
   17.               │     └─base::eval(expr, p)
   18.               └─self$loop_function(...)
   19.                 └─instance$eval_batch(design)
   20.                   └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   21.                     └─self$objective$eval_many(xss_trafoed)
   22.                       └─bbotk:::.__Objective__eval_many(...)
   23.                         ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   24.                         │ └─base::eval.parent(expr, n = 1L)
   25.                         │   └─base::eval(expr, p)
   26.                         │     └─base::eval(expr, p)
   27.                         └─private$.eval_many(xss = xss, resampling = `<list>`)
   28.                           └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   29.                             └─mlr3::benchmark(...)
   30.                               └─ResultData$new(grid, data_extra, store_backends = store_backends)
   31.                                 └─mlr3 (local) initialize(...)
   32.                                   └─mlr3:::.__ResultData__initialize(...)
   33.                                     ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   34.                                     └─data.table:::`[.data.table`(...)
  ── Error ('test_ResultAssignerSurrogate.R:110:3'): ResultAssignerSurrogate passes internal tuned values ──
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─checkmate::expect_data_table(tuner$optimize(instance), nrows = 1L) at test_ResultAssignerSurrogate.R:110:3
    2. │ └─checkmate::checkDataTable(...)
    3. └─tuner$optimize(instance)
    4.   └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    5.     └─private$.optimizer$optimize(inst)
    6.       └─mlr3mbo:::.__OptimizerMbo__optimize(...)
    7.         └─bbotk::optimize_batch_default(inst, self)
    8.           ├─base::tryCatch(...)
    9.           │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.           │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.           │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.           └─get_private(optimizer)$.optimize(instance)
   13.             └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   14.               ├─mlr3misc::invoke(...)
   15.               │ └─base::eval.parent(expr, n = 1L)
   16.               │   └─base::eval(expr, p)
   17.               │     └─base::eval(expr, p)
   18.               └─self$loop_function(...)
   19.                 └─instance$eval_batch(design)
   20.                   └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   21.                     └─self$objective$eval_many(xss_trafoed)
   22.                       └─bbotk:::.__Objective__eval_many(...)
   23.                         ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   24.                         │ └─base::eval.parent(expr, n = 1L)
   25.                         │   └─base::eval(expr, p)
   26.                         │     └─base::eval(expr, p)
   27.                         └─private$.eval_many(xss = xss, resampling = `<list>`)
   28.                           └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   29.                             └─mlr3::benchmark(...)
   30.                               └─ResultData$new(grid, data_extra, store_backends = store_backends)
   31.                                 └─mlr3 (local) initialize(...)
   32.                                   └─mlr3:::.__ResultData__initialize(...)
   33.                                     ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   34.                                     └─data.table:::`[.data.table`(...)
  ── Error ('test_TunerMbo.R:52:3'): Constructing TunerMbo and ABs ───────────────
  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) at test_TunerMbo.R:52:3
    2.   └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    3.     └─private$.optimizer$optimize(inst)
    4.       └─mlr3mbo:::.__OptimizerMbo__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.             └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   12.               ├─mlr3misc::invoke(...)
   13.               │ └─base::eval.parent(expr, n = 1L)
   14.               │   └─base::eval(expr, p)
   15.               │     └─base::eval(expr, p)
   16.               └─self$loop_function(...)
   17.                 └─instance$eval_batch(design)
   18.                   └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   19.                     └─self$objective$eval_many(xss_trafoed)
   20.                       └─bbotk:::.__Objective__eval_many(...)
   21.                         ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   22.                         │ └─base::eval.parent(expr, n = 1L)
   23.                         │   └─base::eval(expr, p)
   24.                         │     └─base::eval(expr, p)
   25.                         └─private$.eval_many(xss = xss, resampling = `<list>`)
   26.                           └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   27.                             └─mlr3::benchmark(...)
   28.                               └─ResultData$new(grid, data_extra, store_backends = store_backends)
   29.                                 └─mlr3 (local) initialize(...)
   30.                                   └─mlr3:::.__ResultData__initialize(...)
   31.                                     ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   32.                                     └─data.table:::`[.data.table`(...)
  ── Error ('test_TunerMbo.R:72:3'): TunerMbo sugar ──────────────────────────────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
       ▆
    1. └─mlr3tuning::tune(...) at test_TunerMbo.R:72:3
    2.   └─tuner$optimize(instance)
    3.     └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    4.       └─private$.optimizer$optimize(inst)
    5.         └─mlr3mbo:::.__OptimizerMbo__optimize(...)
    6.           └─bbotk::optimize_batch_default(inst, self)
    7.             ├─base::tryCatch(...)
    8.             │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.             │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.             │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   11.             └─get_private(optimizer)$.optimize(instance)
   12.               └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   13.                 ├─mlr3misc::invoke(...)
   14.                 │ └─base::eval.parent(expr, n = 1L)
   15.                 │   └─base::eval(expr, p)
   16.                 │     └─base::eval(expr, p)
   17.                 └─self$loop_function(...)
   18.                   └─instance$eval_batch(design)
   19.                     └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   20.                       └─self$objective$eval_many(xss_trafoed)
   21.                         └─bbotk:::.__Objective__eval_many(...)
   22.                           ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   23.                           │ └─base::eval.parent(expr, n = 1L)
   24.                           │   └─base::eval(expr, p)
   25.                           │     └─base::eval(expr, p)
   26.                           └─private$.eval_many(xss = xss, resampling = `<list>`)
   27.                             └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   28.                               └─mlr3::benchmark(...)
   29.                                 └─ResultData$new(grid, data_extra, store_backends = store_backends)
   30.                                   └─mlr3 (local) initialize(...)
   31.                                     └─mlr3:::.__ResultData__initialize(...)
   32.                                       ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   33.                                       └─data.table:::`[.data.table`(...)
  ── Error ('test_TunerMbo.R:143:3'): TunerMbo args ──────────────────────────────
  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) at test_TunerMbo.R:143:3
    2.   └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    3.     └─private$.optimizer$optimize(inst)
    4.       └─mlr3mbo:::.__OptimizerMbo__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.             └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   12.               ├─mlr3misc::invoke(...)
   13.               │ └─base::eval.parent(expr, n = 1L)
   14.               │   └─base::eval(expr, p)
   15.               │     └─base::eval(expr, p)
   16.               └─self$loop_function(...)
   17.                 └─instance$eval_batch(design)
   18.                   └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   19.                     └─self$objective$eval_many(xss_trafoed)
   20.                       └─bbotk:::.__Objective__eval_many(...)
   21.                         ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   22.                         │ └─base::eval.parent(expr, n = 1L)
   23.                         │   └─base::eval(expr, p)
   24.                         │     └─base::eval(expr, p)
   25.                         └─private$.eval_many(xss = xss, resampling = `<list>`)
   26.                           └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   27.                             └─mlr3::benchmark(...)
   28.                               └─ResultData$new(grid, data_extra, store_backends = store_backends)
   29.                                 └─mlr3 (local) initialize(...)
   30.                                   └─mlr3:::.__ResultData__initialize(...)
   31.                                     ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   32.                                     └─data.table:::`[.data.table`(...)
  ── Error ('test_TunerMbo.R:158:3'): TunerMbo reset ─────────────────────────────
  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) at test_TunerMbo.R:158:3
    2.   └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
    3.     └─private$.optimizer$optimize(inst)
    4.       └─mlr3mbo:::.__OptimizerMbo__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.             └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   12.               ├─mlr3misc::invoke(...)
   13.               │ └─base::eval.parent(expr, n = 1L)
   14.               │   └─base::eval(expr, p)
   15.               │     └─base::eval(expr, p)
   16.               └─self$loop_function(...)
   17.                 └─instance$eval_batch(design)
   18.                   └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   19.                     └─self$objective$eval_many(xss_trafoed)
   20.                       └─bbotk:::.__Objective__eval_many(...)
   21.                         ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   22.                         │ └─base::eval.parent(expr, n = 1L)
   23.                         │   └─base::eval(expr, p)
   24.                         │     └─base::eval(expr, p)
   25.                         └─private$.eval_many(xss = xss, resampling = `<list>`)
   26.                           └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   27.                             └─mlr3::benchmark(...)
   28.                               └─ResultData$new(grid, data_extra, store_backends = store_backends)
   29.                                 └─mlr3 (local) initialize(...)
   30.                                   └─mlr3:::.__ResultData__initialize(...)
   31.                                     ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   32.                                     └─data.table:::`[.data.table`(...)
  
  [ FAIL 6 | WARN 2 | SKIP 18 | PASS 1043 ]
  Error:
  ! Test failures.
  Execution halted