load_outputs: Load one or more output objects from file.

View source: R/methods.R

load_outputsR Documentation

Load one or more output objects from file.

Description

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.

Usage

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)

Arguments

dir

the directory passed to generate_model)

model_name

the Model object's name

index

a vector of positive integers.

method_name

the Method object's name

out_names

a character vector of which elements of output should be loaded. If NULL, then all elements are loaded.

out_loc

only needed if it was used in call to run_method.

more_info

if TRUE, then returns additional information such as state of RNG after calling simulate_from_model

simulator.files

if NULL, then getOption("simulator.files") will be used.

ref

an object of class OutputRef

See Also

run_method output


simulator documentation built on Feb. 16, 2023, 9:34 p.m.