R/simulation.R
save_object_state.Rd
Save the state of a simulation object or set of objects.
save_object_state(objects)
a simulation object (eg. a variable or event) or an arbitrarily nested list structure of such objects.
the saved states of the objects. This has the same shape as the given
objects
: if a list was passed as an argument, this returns the
corresponding list of saved states. If a singular object was passed, this
returns just that particular object's state.