Running ‘testthat.R’ [176s/165s]
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 1 | PASS 109 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • emoa cannot be loaded (1): 'test_TunerHyperband.R:62:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_nds_selection.R:42:7'): nds_selection works ────────────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: emoa
  Backtrace:
      ▆
   1. └─base::replicate(...) at test_nds_selection.R:42:7
   2.   └─base::sapply(...)
   3.     └─base::lapply(X = X, FUN = FUN, ...)
   4.       └─mlr3hyperband (local) FUN(X[[i]], ...)
   5.         └─bbotk::nds_selection(j * points, i, minimize = (j == 1))
   6.           └─mlr3misc::require_namespaces("emoa")
  ── Error ('test_TunerSuccessiveHalving.R:85:3'): TunerSuccessiveHalving works with multi-crit ──
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: emoa
  Backtrace:
       ▆
    1. └─mlr3hyperband:::test_tuner_successive_halving(...) at test_TunerSuccessiveHalving.R:85:3
    2.   └─mlr3tuning::tune(...) at tests/testthat/helper.R:61:3
    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 (local) tryCatchList(expr, classes, parentenv, handlers)
   10.               │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.               │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.               └─private$.optimize(inst)
   13.                 └─mlr3misc::require_namespaces("emoa")
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 109 ]
  Error: Test failures
  Execution halted