load_model: Load a model from file.

Description Usage Arguments Details See Also

View source: R/models.R

Description

After generate_model has been called, this function can be used to load the saved Model object (along with the RNG state and other information if desired).

Usage

1
load_model(dir, model_name, more_info = FALSE, simulator.files = NULL)

Arguments

dir

the directory passed to generate_model)

model_name

the Model object's name attribute

more_info

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

simulator.files

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

Details

Depending on more_info, either returns Model object or a list containing Model object and other information. If simulation object is available, it is easier to use the function model to load the model.

See Also

generate_model model


simulator documentation built on May 1, 2019, 8:40 p.m.