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 simList
checkpointFile(sim)

checkpointFile(sim) <- value

# S4 method for simList
checkpointFile(sim) <- value

checkpointInterval(sim)

# S4 method for simList
checkpointInterval(sim)

checkpointInterval(sim) <- value

# S4 method for simList
checkpointInterval(sim) <- value

doEvent.checkpoint(sim, eventTime, eventType, debug = FALSE)

checkpointLoad(file)

.checkpointSave(sim, file)

Arguments

sim

A simList simulation object.

value

The parameter value to be set (in the corresponding module and param).

eventTime

A numeric specifying the time of the next event.

eventType

A character string specifying the type of event: one of either "init", "load", or "save".

debug

Optional logical flag determines whether sim debug info will be printed (default debug = FALSE).

file

The checkpoint file.

Value

Returns the modified simList object.

See also

.Random.seed.

Other functions to access elements of a 'simList' object: .addDepends(), envir(), events(), globals(), inputs(), modules(), objs(), packages(), params(), paths(), progressInterval(), times()

Author

Alex Chubaty