Skip to content

Commit 93525e1

Browse files
committed
compatibility: bbotk 1.7.0
1 parent c088a4d commit 93525e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/AcqFunction.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ AcqFunction = R6Class("AcqFunction",
4747
check_packages_installed(packages, msg = sprintf("Package '%%s' required but not installed for acquisition function '%s'", sprintf("<%s:%s>", "AcqFunction", id)))
4848
}
4949
private$.requires_predict_type_se = assert_flag(requires_predict_type_se)
50-
private$.packages = packages
5150
self$direction = assert_choice(direction, c("same", "minimize", "maximize"))
5251
if (is.null(surrogate)) {
5352
domain = ParamSet$new()
@@ -63,6 +62,9 @@ AcqFunction = R6Class("AcqFunction",
6362
domain = generate_acq_domain(surrogate)
6463
}
6564
super$initialize(id = id, domain = domain, codomain = codomain, constants = constants, check_values = FALSE, label = label, man = man)
65+
# workaround for bbotk
66+
# move to initialize after bbotk CRAN update
67+
private$.packages = packages
6668
},
6769

6870
#' @description

0 commit comments

Comments
 (0)