- newresp
A matrix on whose columns fn will be applied (e.g., as used internally in spaMM, the return value of a simulate.HLfit() call); or an integer, then converted to a trivial matrix matrix(seq(newresp),ncol=newresp,nrow=1).
- fn
Function whose first argument is named y. The function will be applied for y taken to be each column of newresp.
- nb_cores
Integer. Number of cores to use for parallel computations. If >1, a cluster of nb_cores nodes is used. Otherwise, no parallel computation is performed.
- fit_env
(for socket clusters only:) An environment, or a list, containing variables to be exported on the nodes of the cluster (by parallel::clusterExport).
- control
A list. The only effective control is .combine="rbind" (mimicking the foreach syntax used in the alternative interface dopar).
- cluster_args
A list of arguments passed to parallel::makeCluster or parallel::makeForkCluster. E.g., outfile="log.txt" may be useful to collect output from the nodes, and type="FORK" to force a fork cluster on linux(-alikes).
- debug.
(for socket clusters only:) For debugging purposes. Effect, if any, is to be defined by the fn as provided by the user.
- iseed
Integer, or NULL. If an integer, it is used to initialize "L'Ecuyer-CMRG" random-number generator (iseed argument of clusterSetRNGStream), with identical effect across different models of parallelisation. If iseed is NULL, the seed is not controlled.
- showpbar,pretest_cores
Currently ignored; for consistency with dopar formal arguments.
- ...
Further arguments to be passed (unevaluated) to future.apply (and then possibly to fn).