Wrap a given objective function to be evaluated via the batchtools package and make it accessible for SPOT.
wrapBatchTools(
fun,
reg = NULL,
clusterFunction = batchtools::makeClusterFunctionsInteractive(),
resources = NULL
)
function to wrap
batchtools registry, if none is provided, then one will be created automatically
batchtools clusterFunction, default: makeClusterFunctionsInteractive()
resource list that is passed to batchtools, default NULL
callable function for SPOT