Adds a ModelRef, DrawsRef, OutputRef, or EvalsRef to a simulation object. To add a DrawsRef, the corresponding ModelRef must already be added. Likewise, to add an OutputRef, the corresponding DrawsRef must already be added. And to add an EvalsRef, the corresponding OutputRef must be added. One can also pass a list of such objects.
add(sim, ref, ...)# S4 method for Simulation,ModelRef
add(sim, ref, update_saved = TRUE)
# S4 method for Simulation,DrawsRef
add(sim, ref, update_saved = TRUE)
# S4 method for Simulation,OutputRef
add(sim, ref, update_saved = TRUE)
# S4 method for Simulation,EvalsRef
add(sim, ref, update_saved = TRUE)
# S4 method for Simulation,list
add(sim, ref, update_saved = TRUE)
simulation being added to
the reference object being added
not used
default is TRUE. Determines whether change to simulation object should be saved to file
The modified simulation object is saved to file if update_saved
is
TRUE.