Skip to content

Commit 9648acf

Browse files
ja-thomasberndbischl
authored andcommitted
make check a bit nicer
1 parent c7613a8 commit 9648acf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/infillOptFocus.R

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ infillOptFocus = function(infill.crit, models, control, par.set, opt.path, desig
1111

1212
discrete.vector.pars = filterParams(par.set, type = c("discretevector", "logicalvector"))
1313

14-
all.requirements = extractSubList(par.set$pars, "requires", simplify = FALSE)
15-
all.requirement.vars = unique(unlist(lapply(all.requirements, all.vars)))
16-
if (any(all.requirement.vars %in% getParamIds(discrete.vector.pars))) {
14+
if (any(ParamHelpers:::getRequiredParamNames.ParamSet(par.set) %in% getParamIds(discrete.vector.pars)))
1715
stop("Cannot do focus search when some variables have requirements that depend on discrete or logical vector parameters.")
18-
}
1916

2017

2118
# perform multiple starts

0 commit comments

Comments
 (0)