After run_method
has been called, this function can
be used to load one or more of the saved Output
object(s).
If multiple indices are provided, these will be combined
into a new single Output
object.
If simulation object is available, it is easier to use the function
output
to load it.
load_outputs(
dir,
model_name,
index,
method_name,
out_names = NULL,
out_loc = "out",
more_info = FALSE,
simulator.files = NULL
)load_outputs_from_ref(ref, out_names = NULL)
the directory passed to generate_model
)
the Model
object's name
a vector of positive integers.
the Method
object's name
a character vector of which elements of output should be loaded. If NULL, then all elements are loaded.
only needed if it was used in call to
run_method
.
if TRUE, then returns additional information such as
state of RNG after calling simulate_from_model
if NULL, then getOption("simulator.files")
will be used.
an object of class OutputRef
run_method
output