Running ‘testthat.R’ [267s/171s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate")
  +   library("mlr3hyperband")
  +   test_check("mlr3hyperband")
  + }
  Loading required package: mlr3tuning
  Loading required package: mlr3
  Loading required package: paradox
  Starting 2 test processes
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 132 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_TunerHyperband.R:91:3): TunerHyperband errors if not enough parameters are sampled ──
  Error in `private$.optimize(inst)`: Assertion on 'sampler$param_set$ids()' failed: Must be a set equal to {'x','message_train'}, but is missing elements {'message_train'}.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_TunerHyperband.R:91:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─mlr3tuning::tune(...)
    8.   └─tuner$optimize(instance)
    9.     └─mlr3tuning:::.__TunerFromOptimizer__optimize(...)
   10.       └─private$.optimizer$optimize(inst)
   11.         └─bbotk:::.__Optimizer__optimize(...)
   12.           └─bbotk::optimize_default(inst, self, private)
   13.             ├─base::tryCatch(...)
   14.             │ └─base tryCatchList(expr, classes, parentenv, handlers)
   15.             │   └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   16.             │     └─base doTryCatch(return(expr), name, parentenv, handler)
   17.             └─private$.optimize(inst)
   18.               └─checkmate::assert_set_equal(sampler$param_set$ids(), search_space_sampler$ids())
   19.                 └─checkmate::makeAssertion(x, res, .var.name, add)
   20.                   └─checkmate:::mstop(...)
  ── Error (test_TunerHyperband.R:114:3): TunerHyperband errors if budget parameter is sampled ──
  Error in `private$.optimize(inst)`: Assertion on 'sampler$param_set$ids()' failed: Must be a permutation of set {'x'}, but has extra elements {'iter'}.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_TunerHyperband.R:114:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─mlr3tuning::tune(...)
    8.   └─tuner$optimize(instance)
    9.     └─mlr3tuning:::.__TunerFromOptimizer__optimize(...)
   10.       └─private$.optimizer$optimize(inst)
   11.         └─bbotk:::.__Optimizer__optimize(...)
   12.           └─bbotk::optimize_default(inst, self, private)
   13.             ├─base::tryCatch(...)
   14.             │ └─base tryCatchList(expr, classes, parentenv, handlers)
   15.             │   └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   16.             │     └─base doTryCatch(return(expr), name, parentenv, handler)
   17.             └─private$.optimize(inst)
   18.               └─checkmate::assert_set_equal(sampler$param_set$ids(), search_space_sampler$ids())
   19.                 └─checkmate::makeAssertion(x, res, .var.name, add)
   20.                   └─checkmate:::mstop(...)
  ── Error (test_TunerSuccessiveHalving.R:108:3): TunerSuccessiveHalving errors if not enough parameters are sampled ──
  Error in `private$.optimize(inst)`: Assertion on 'sampler$param_set$ids()' failed: Must be a set equal to {'x','message_train'}, but is missing elements {'message_train'}.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_TunerSuccessiveHalving.R:108:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─mlr3tuning::tune(...)
    8.   └─tuner$optimize(instance)
    9.     └─mlr3tuning:::.__TunerFromOptimizer__optimize(...)
   10.       └─private$.optimizer$optimize(inst)
   11.         └─bbotk:::.__Optimizer__optimize(...)
   12.           └─bbotk::optimize_default(inst, self, private)
   13.             ├─base::tryCatch(...)
   14.             │ └─base tryCatchList(expr, classes, parentenv, handlers)
   15.             │   └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   16.             │     └─base doTryCatch(return(expr), name, parentenv, handler)
   17.             └─private$.optimize(inst)
   18.               └─checkmate::assert_set_equal(sampler$param_set$ids(), search_space_sampler$ids())
   19.                 └─checkmate::makeAssertion(x, res, .var.name, add)
   20.                   └─checkmate:::mstop(...)
  ── Error (test_TunerSuccessiveHalving.R:131:3): TunerSuccessiveHalving errors if budget parameter is sampled ──
  Error in `private$.optimize(inst)`: Assertion on 'sampler$param_set$ids()' failed: Must be a permutation of set {'x'}, but has extra elements {'iter'}.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_TunerSuccessiveHalving.R:131:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─mlr3tuning::tune(...)
    8.   └─tuner$optimize(instance)
    9.     └─mlr3tuning:::.__TunerFromOptimizer__optimize(...)
   10.       └─private$.optimizer$optimize(inst)
   11.         └─bbotk:::.__Optimizer__optimize(...)
   12.           └─bbotk::optimize_default(inst, self, private)
   13.             ├─base::tryCatch(...)
   14.             │ └─base tryCatchList(expr, classes, parentenv, handlers)
   15.             │   └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   16.             │     └─base doTryCatch(return(expr), name, parentenv, handler)
   17.             └─private$.optimize(inst)
   18.               └─checkmate::assert_set_equal(sampler$param_set$ids(), search_space_sampler$ids())
   19.                 └─checkmate::makeAssertion(x, res, .var.name, add)
   20.                   └─checkmate:::mstop(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 132 ]
  Error: Test failures
  Execution halted