Skip to contents

The load_model function (opposed to the write_model) loads previous saved DistributionModel. It is essentially a wrapper to readRDS.

When models are loaded, they are briefly checked for their validity and presence of necessary components.

Usage

load_model(fname, verbose = getOption("ibis.setupmessages", default = TRUE))

# S4 method for class 'character'
load_model(fname, verbose = getOption("ibis.setupmessages", default = TRUE))

Arguments

fname

A character depicting an output filename.

verbose

logical indicating whether messages should be shown. Overwrites getOption("ibis.setupmessages") (Default: TRUE).

Value

A DistributionModel object.

See also

write_model

Examples

if (FALSE) { # \dontrun{
# Load model
mod <- load_model("testmodel.rds")

summary(mod)
} # }