egf_parallel {epigrowthfit} | R Documentation |
Define a Parallelization Method
Description
Defines instructions for parallelization by linking a method with options.
Usage
egf_parallel(method = c("serial", "multicore", "snow"),
outfile = "", cores = getOption("egf.cores", 1L),
args = list(), cl = NULL)
Arguments
method |
a character string indicating a method of parallelization.
|
outfile |
a character string indicating a file path where console output
should be diverted. An empty string indicates no diversion.
If |
cores |
a positive integer indicating a number of threads/processes to
fork/spawn when |
args |
a list of optional arguments to
|
cl |
an existing socket cluster
( |
Value
A list inheriting from class "egf_parallel"
containing the arguments (after possible matching and coercion).
See Also
vignette("parallel", "parallel")
.
Examples
parallel <- egf_parallel()
str(parallel)