Run simInit
and Experiment
in one step
simInitAndExperiment( times, params, modules, objects, paths, inputs, outputs, loadOrder, notOlderThan, replicates, dirPrefix, substrLength, saveExperiment, experimentFile, clearSimEnv, cl, ... )
times | A named list of numeric simulation start and end times
(e.g., |
---|---|
params | A list of lists of the form |
modules | A named list of character strings specifying the names
of modules to be loaded for the simulation. Note: the module name
should correspond to the R source file from which the module is loaded.
Example: a module named "caribou" will be sourced form the file
|
objects | (optional) A vector of object names (naming objects
that are in the calling environment of
the |
paths | An optional named list with up to 4 named elements,
|
inputs | A |
outputs | A See |
loadOrder | An optional list of module names specifying the order in which to load the modules. If not specified, the module load order will be determined automatically. |
notOlderThan | A time, as in from |
replicates | The number of replicates to run of the same |
dirPrefix | String vector. This will be concatenated as a prefix on the directory names. See details and examples. |
substrLength | Numeric. While making |
saveExperiment | Logical. Should params, modules, inputs, sim, and resulting
experimental design be saved to a file. If TRUE are saved to a single list
called |
experimentFile | String. Filename if |
clearSimEnv | Logical. If TRUE, then the envir(sim) of each simList in the return list is emptied. This is to reduce RAM load of large return object. Default FALSE. |
cl | A cluster object. Optional. This would generally be created using
parallel::makeCluster or equivalent. This is an alternative way, instead
of |
... | Passed to |
simInitAndExperiment
cannot pass modules or params to experiment
because
these are also in simInit
. If the experiment
is being used
to vary these arguments, it must be done separately (i.e., simInit
then
experiment
).