Error in `eval(code, test_env)`: object 'TuningInstanceBatchSingleCrit' not found

learner$param_set$values$cp = paradox::to_tune(1e-04, 1e-1, logscale = TRUE)
learner$param_set$values$minsplit = paradox::to_tune(2, 128, logscale = TRUE)
resampling = mlr3::rsmp("cv", folds = 3),
terminator = trm("evals", n_evals = 100))
tuner = tnr("random_search", batch_size = 10)
invoke(tuner$optimize, instance, .seed = 123)
p = autoplot(instance, type = "marginal")
p = autoplot(instance, type = "marginal", cols_x = "x_domain_cp")
p = autoplot(instance, type = "marginal", trafo = TRUE)
p = autoplot(instance, type = "performance")
p = autoplot(instance, type = "parameter")
p = autoplot(instance, type = "parameter", cols_x = "x_domain_cp")
p = autoplot(instance, type = "parameter", trafo = TRUE)
p = autoplot(instance, type = "parameter", return_list = TRUE)
p = autoplot(instance, type = "surface")
p = autoplot(instance, type = "surface", grid_resolution = 50)
p = autoplot(instance, type = "surface", learner = lrn("regr.lm"))
p = autoplot(instance, type = "parallel")
p = autoplot(instance, type = "incumbent")
# learner$param_set$values$eta = paradox::to_tune(0.01, 0.1)
# learner$param_set$values$nrounds = paradox::to_tune(1, 2)
#   terminator = trm("evals", n_evals = 4))
# tuner = tnr("random_search", batch_size = 2)
# p = autoplot(instance, type = "parallel")
# p = autoplot(instance, type = "parallel", cols_x = c("maximize", "booster"))
# expect_error(autoplot(instance, type = "surface"),
#   regexp = "Surface plots can only be drawn with 2 parameters.",
# expect_error(autoplot(instance, type = "surface", cols_x = "nrounds"),
# expect_error(autoplot(instance, type = "parallel"),
#   regexp = "Parallel coordinate plots cannot be displayed with missing data.",