Experimentin one step
Experiment in one step
simInitAndExperiment( times, params, modules, objects, paths, inputs, outputs, loadOrder, notOlderThan, replicates, dirPrefix, substrLength, saveExperiment, experimentFile, clearSimEnv, cl, ... )
A named list of numeric simulation start and end times
A list of lists of the form
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
(optional) A vector of object names (naming objects
that are in the calling environment of
An optional named list with up to 4 named elements,
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.
A time, as in from
The number of replicates to run of the same
String vector. This will be concatenated as a prefix on the directory names. See details and examples.
Numeric. While making
Logical. Should params, modules, inputs, sim, and resulting
experimental design be saved to a file. If TRUE are saved to a single list
String. Filename if
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.
A cluster object. Optional. This would generally be created using
parallel::makeCluster or equivalent. This is an alternative way, instead
simInitAndExperiment cannot pass modules or params to
these are also in
simInit. If the
experiment is being used
to vary these arguments, it must be done separately (i.e.,