Save the simulation state in an R object, allowing it to be resumed later using restore_state.

checkpoint_state(timesteps, variables, events)

Arguments

timesteps

<- the number of time steps that have already been simulated

variables

the list of Variables

events

the list of Events