Running 'testthat.R' [164s]
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 2 | WARN 0 | SKIP 0 | PASS 129 ]
  
  == Failed tests ================================================================
  -- Error (test_TunerHyperband.R:79:3): TunerHyperband works with custom sampler --
  Error in `set(xdt, j = budget_id, value = rs)`: Internal error: DT passed to assign has not been allocated enough column slots. l=1, tl=1, adding 1
  Backtrace:
       x
    1. \-mlr3hyperband:::test_tuner_hyperband(eta = 2, learner, sampler = sampler) at test_TunerHyperband.R:79:2
    2.   \-mlr3tuning::tune(...) at d:\RCompile\CRANpkg\local\4.0\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:2
    3.     \-tuner$optimize(instance)
    4.       \-mlr3tuning:::.__TunerFromOptimizer__optimize(...)
    5.         \-private$.optimizer$optimize(inst)
    6.           \-bbotk:::.__Optimizer__optimize(...)
    7.             \-bbotk::optimize_default(inst, self, private)
    8.               +-base::tryCatch(...)
    9.               | \-base tryCatchList(expr, classes, parentenv, handlers)
   10.               |   \-base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.               |     \-base doTryCatch(return(expr), name, parentenv, handler)
   12.               \-private$.optimize(inst)
   13.                 \-data.table::set(xdt, j = budget_id, value = rs)
  -- Error (test_TunerSuccessiveHalving.R:96:3): TunerSuccessiveHalving works with custom sampler --
  Error in `set(xdt, j = budget_id, value = ri)`: Internal error: DT passed to assign has not been allocated enough column slots. l=1, tl=1, adding 1
  Backtrace:
       x
    1. \-mlr3hyperband:::test_tuner_successive_halving(...) at test_TunerSuccessiveHalving.R:96:2
    2.   \-mlr3tuning::tune(...) at d:\RCompile\CRANpkg\local\4.0\mlr3hyperband.Rcheck\tests\testthat\helper.R:63:2
    3.     \-tuner$optimize(instance)
    4.       \-mlr3tuning:::.__TunerFromOptimizer__optimize(...)
    5.         \-private$.optimizer$optimize(inst)
    6.           \-bbotk:::.__Optimizer__optimize(...)
    7.             \-bbotk::optimize_default(inst, self, private)
    8.               +-base::tryCatch(...)
    9.               | \-base tryCatchList(expr, classes, parentenv, handlers)
   10.               |   \-base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.               |     \-base doTryCatch(return(expr), name, parentenv, handler)
   12.               \-private$.optimize(inst)
   13.                 \-data.table::set(xdt, j = budget_id, value = ri)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 129 ]
  Error: Test failures
  Execution halted