Running ‘testthat.R’ [216s/418s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(mlr3mbo)
  +   test_check("mlr3mbo")
  + }
  Loading required namespace: mlr3learners
  Loading required namespace: DiceKriging
  Loading required namespace: rgenoud
  Loading required package: mlr3
  WARN  [23:52:29.728] [bbotk] Optimizer Error.
  WARN  [23:52:57.903] [bbotk] All candidates were already evaluated.
  WARN  [23:54:45.080] [bbotk] Surrogate Train Error.
  WARN  [23:55:00.090] [bbotk] Current insample performance of the Surrogate Model does not meet the performance threshold.
  WARN  [23:55:08.205] [bbotk] Surrogate Train Error.
  WARN  [23:55:33.196] [bbotk] Current insample performance of the Surrogate Model does not meet the performance threshold.
  WARN  [23:56:22.929] [bbotk] Cannot predict, Learner 'regr.km' has not been trained yet
  WARN  [23:56:48.483] [bbotk] Current insample performance of the Surrogate Model does not meet the performance threshold.
  WARN  [23:56:52.637] [bbotk] Optimizer Error.
  WARN  [23:56:53.049] [bbotk] Surrogate Train Error.
  WARN  [23:56:53.596] [bbotk] Surrogate Predict Error.
  WARN  [23:58:10.135] [bbotk] Cannot predict, Learner 'regr.error' has not been trained yet
  [ FAIL 2 | WARN 0 | SKIP 4 | PASS 870 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test_AcqFunctionEHVIGH.R:32:3', 'test_OptimizerMbo.R:2:3',
    'test_ResultAssignerSurrogate.R:16:3', 'test_TunerMbo.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_bayesopt_ego.R:46:3'): bayesopt_ego custom initial design and sizes ──
  sum(is.na(instance$archive$data$acq_ei)) == 3L is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test_bayesopt_ego.R:47:3'): bayesopt_ego custom initial design and sizes ──
  !is.na(instance$archive$data$acq_ei[4L]) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 2 | WARN 0 | SKIP 4 | PASS 870 ]
  Error: Test failures
  Execution halted