Running ‘testthat.R’ [74s/218s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate")
  +   library("mlr3tuningspaces")
  +   test_check("mlr3tuningspaces")
  + }
  Loading required package: mlr3tuning
  Loading required package: mlr3
  Loading required package: paradox
  OptimInstanceSingleCrit is deprecated. Use OptimInstanceBatchSingleCrit instead.
  OptimInstanceMultiCrit is deprecated. Use OptimInstanceBatchMultiCrit instead.
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1338 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_as_search_space.R:30:3'): search space from TuningSpace works ──
  Error in `.__TunerRandomSearch__initialize(self = self, private = private, 
      super = super)`: object 'OptimizerRandomSearch' not found
  Backtrace:
       ▆
    1. ├─AutoTuner$new(...) at test_as_search_space.R:30:3
    2. │ └─mlr3tuning (local) initialize(...)
    3. │   └─mlr3tuning:::.__AutoTuner__initialize(...)
    4. │     └─mlr3tuning:::assert_tuner(tuner)
    5. │       └─checkmate::assert_r6(tuner, "Tuner")
    6. │         └─checkmate::checkR6(...)
    7. └─mlr3tuning::tnr("random_search")
    8.   └─mlr3misc::dictionary_sugar_get(mlr_tuners, .key, ...)
    9.     └─mlr3misc:::dictionary_get(dict, .key)
   10.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   11.         ├─base::do.call(constructor$new, cargs)
   12.         └─R6 (local) `<fn>`()
   13.           └─mlr3tuning (local) initialize(...)
   14.             └─mlr3tuning:::.__TunerRandomSearch__initialize(...)
   15.               └─super$initialize(optimizer = OptimizerRandomSearch$new(), man = "mlr3tuning::mlr_tuners_random_search")
   16.                 └─mlr3tuning:::.__TunerFromOptimizer__initialize(...)
   17.                   └─bbotk::assert_optimizer(optimizer)
   18.                     └─checkmate::assert_r6(optimizer, "Optimizer")
   19.                       └─checkmate::checkR6(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1338 ]
  Error: Test failures
  Execution halted