checkpointFile | R Documentation |
Save and reload the current state of the simulation, including the state of the random number generator, by scheduling checkpoint events.
checkpointFile(sim)
## S4 method for signature 'simList'
checkpointFile(sim)
checkpointFile(sim) <- value
## S4 replacement method for signature 'simList'
checkpointFile(sim) <- value
checkpointInterval(sim)
## S4 method for signature 'simList'
checkpointInterval(sim)
checkpointInterval(sim) <- value
## S4 replacement method for signature 'simList'
checkpointInterval(sim) <- value
doEvent.checkpoint(sim, eventTime, eventType, debug = FALSE)
checkpointLoad(file)
.checkpointSave(sim, file)
sim |
A |
value |
The parameter value to be set (in the corresponding |
eventTime |
A numeric specifying the time of the next event. |
eventType |
A character string specifying the type of event: one of
either |
debug |
Optional logical flag determines whether |
file |
The checkpoint file. |
Returns the modified simList
object.
Checkpoint files are intended to be used locally, and do not invoke the simulation archiving tools to bundle and subsequently extract simulation files (e.g., file-backed rasters).
RNG save code adapted from: http://www.cookbook-r.com/Numbers/Saving_the_state_of_the_random_number_generator/ and https://stackoverflow.com/q/13997444/1380598
Alex Chubaty
.Random.seed.
Other functions to access elements of a 'simList' object:
.addDepends()
,
envir()
,
events()
,
globals()
,
inputs()
,
modules()
,
objs()
,
packages()
,
params()
,
paths()
,
progressInterval()
,
times()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.