- sim
A simList or a filename that will load a simList, e.g., from
saveState or saveSimList. If not supplied (the default),
this will take the sim from
savedSimEnv()$.sim, i.e., the one that was interrupted
- module
A character string length one naming the module that caused the error and
whose source code was fixed. This module will be re-parsed and placed into the simList
- numEvents
Numeric. Default is Inf (i.e., all available).
The number of events to be rewound.
In the simList, if options('spades.recoveryMode') is set to TRUE or a numeric,
then there will be a list in the simList called .recoverableObjs.
These will be replayed backwards in time to reproduce the initial state of the simList
before the event that is numEvents prior to the first event in events(sim).
- restart
Logical. If TRUE, then the call to spades will be made, i.e.,
restarting the simulation. If FALSE, then it will return a new simList
with the module code parsed into the simList
- verbose
Logical or Numeric, follows reproducible.verbose value by default.
- ...
Passed to spades, e.g., debug, .plotInitialTime
- filename
The filename to save the sim state.
saveState is a wrapper around restartSpades and saveSimList. You can
pass arguments to the ... that will be passed to saveSimList, such as
modules, inputs, outputs.
- ll
A list of elements that would be passed to simInit, such as modules.
- file
An optional file that has a saved simList, e.g., from saveSimList
or saveState.
- reset
Logical. If TRUE, then it will force simInitAndSpades to be called
even if there is saved sim available.