Running examples in ‘mlr3mbo-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mlr_acqfunctions_ehvigh
> ### Title: Acquisition Function Expected Hypervolume Improvement via
> ###   Gauss-Hermite Quadrature
> ### Aliases: mlr_acqfunctions_ehvigh AcqFunctionEHVIGH
> 
> ### ** Examples
> 
> if (requireNamespace("mlr3learners") &
+     requireNamespace("DiceKriging") &
+     requireNamespace("rgenoud")) {
+   library(bbotk)
+   library(paradox)
+   library(mlr3learners)
+   library(data.table)
+ 
+   fun = function(xs) {
+     list(y1 = xs$x^2, y2 = (xs$x - 2) ^ 2)
+   }
+   domain = ps(x = p_dbl(lower = -10, upper = 10))
+   codomain = ps(y1 = p_dbl(tags = "minimize"), y2 = p_dbl(tags = "minimize"))
+   objective = ObjectiveRFun$new(fun = fun, domain = domain, codomain = codomain)
+ 
+   instance = OptimInstanceMultiCrit$new(
+     objective = objective,
+     terminator = trm("evals", n_evals = 5))
+ 
+   instance$eval_batch(data.table(x = c(-6, -5, 3, 9)))
+ 
+   learner = lrn("regr.km",
+     covtype = "matern3_2",
+     optim.method = "gen",
+     nugget.stability = 10^-8,
+     control = list(trace = FALSE))
+ 
+   surrogate = srlrn(list(learner, learner$clone(deep = TRUE)), archive = instance$archive)
+ 
+   acq_function = acqf("ehvigh", surrogate = surrogate)
+ 
+   acq_function$surrogate$update()
+   acq_function$update()
+   acq_function$eval_dt(data.table(x = c(-1, 0, 1)))
+ }
Loading required package: paradox
Loading required package: mlr3
INFO  [02:18:19.079] [bbotk] Evaluating 4 configuration(s)
INFO  [02:18:19.092] [bbotk] Result of batch 1:
INFO  [02:18:19.095] [bbotk]   x y1 y2
INFO  [02:18:19.095] [bbotk]  -6 36 64
INFO  [02:18:19.095] [bbotk]  -5 25 49
INFO  [02:18:19.095] [bbotk]   3  9  1
INFO  [02:18:19.095] [bbotk]   9 81 49
Warning: Package 'emoa' required but not installed for acquisition function '<AcqFunction:acq_ehvigh>'
Error in loadNamespace(x) : there is no package called ‘emoa’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted