Running ‘testthat.R’ [11m/31m]
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: mlr3
  Loading required package: mlr3tuning
  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
  Saving _problems/test_ResultAssignerSurrogate-142.R
  WARN  [08:10:46.154] [bbotk] Caught the following error: 
  x Acquisition function optimization failed.
  > Class: Mlr3ErrorMboAcqOptimizer
  Caused by:
    Optimizer Error.
  
  WARN  [08:10:48.217] [bbotk] Caught the following error: 
  x Surrogate update failed.
  > Class: Mlr3ErrorMboSurrogateUpdate
  Caused by:
    x Surrogate Train Error.
    > Class: Mlr3ErrorLearnerTrain
  
  WARN  [08:10:49.956] [bbotk] Caught the following error: 
  x Acquisition function optimization failed.
  > Class: Mlr3ErrorMboAcqOptimizer
  Caused by:
    x Surrogate Predict Error.
    > Class: Mlr3ErrorLearnerPredict
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 1174 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • On CRAN (11): 'test_AcqFunctionEHVIGH.R:38:3',
    'test_AcqFunctionStochasticCB.R:2:1', 'test_AcqFunctionStochasticEI.R:2:1',
    'test_OptimizerADBO.R:2:1', 'test_OptimizerAsyncMbo.R:2:1',
    'test_OptimizerMbo.R:2:3', 'test_ResultAssignerSurrogate.R:18:3',
    'test_TunerADBO.R:2:1', 'test_TunerAsyncMbo.R:2:1', 'test_TunerMbo.R:2:3',
    'test_conditions.R:5:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ResultAssignerSurrogate.R:142:3'): ResultAssignerSurrogate passes internal tuned values ──
  Error in `.__OptimInstanceBatchSingleCrit__assign_result(self = self, private = private, super = super, xdt = xdt, y = y, extra = extra, ... = ...)`: Assertion on 'private$.result_y' failed: Must have length 1.
  Backtrace:
       ▆
    1. ├─checkmate::expect_data_table(tuner$optimize(instance), nrows = 1L) at test_ResultAssignerSurrogate.R:142: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.           └─get_private(optimizer)$.assign_result(instance)
    9.             └─mlr3mbo:::.__OptimizerMbo__.assign_result(...)
   10.               └─self$result_assigner$assign_result(inst)
   11.                 └─mlr3mbo:::.__ResultAssignerSurrogate__assign_result(...)
   12.                   └─instance$assign_result(xdt = best, y = best_y, extra = extra)
   13.                     └─mlr3tuning:::.__TuningInstanceBatchSingleCrit__assign_result(...)
   14.                       └─super$assign_result(private$.result_xdt, private$.result_y)
   15.                         └─bbotk:::.__OptimInstanceBatchSingleCrit__assign_result(...)
   16.                           └─checkmate::assert_number(private$.result_y)
   17.                             └─checkmate::makeAssertion(x, res, .var.name, add)
   18.                               └─checkmate:::mstop(...)
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 1174 ]
  Error:
  ! Test failures.
  Execution halted