You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/SmallFuncs.R
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ checkParameters <- function(
160
160
if (parallel& (getDoParWorkers() ==1)) stop("parallel is set to TRUE but no back end is registered.\n")
161
161
if (!parallel& getDoParWorkers() >1&verbose>0) message("parallel back end is registered, but parallel is set to false. Process will not be run in parallel.")
162
162
if (any(!names(otherHalting) %in% c("timeLimit","minUtility"))) stop("otherHalting element not recognized. Must be one of timeLimit and minUtility.")
163
-
if (class(bounds) !="list") stop("bounds must be a list of parameter bounds with the same arguments as FUN.")
163
+
if (!inherits(x=bounds, what="list")) stop("bounds must be a list of parameter bounds with the same arguments as FUN.")
164
164
if (any(lengths(bounds) !=2)) stop("Not all elements in bounds are length 2.")
165
165
if (acqThresh>1|acqThresh<0) stop("acqThresh must be in [0,1]")
166
166
if (!is.logical(plotProgress)) stop("plotProgress must be logical")
0 commit comments