load_model: Load a model from file.

View source: R/models.R

load_modelR Documentation

Load a model from file.

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

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 Feb. 16, 2023, 9:34 p.m.