Learn R Programming

RSTr (version 1.1.4)

load_model: Load model

Description

load_model() imports an RSTr object with name name in directory dir.

Usage

load_model(name, dir = tempdir())

Value

An RSTr model object.

Arguments

name

The name of the model to load.

dir

The directory in which the model lives.

Examples

Run this code
data_min <- lapply(miheart, \(x) x[1:2, 1:3, 1:3])
adj_min <- list(2, 1)
on.exit(unlink(file.path(tempdir(), "test"), recursive = TRUE), add = TRUE)
mod_mst <- mstcar("test", data_min, adj_min, tempdir(), show_plots = FALSE, verbose = FALSE)
mod_mst <- load_model(name = "test", dir = tempdir())

Run the code above in your browser using DataLab