Learn R Programming

pharmr (version 1.4.0)

retrieve_model: retrieve_model

Description

Retrieve a model from a context/tool run

Any models created and run by the tool can be retrieved.

Usage

retrieve_model(source, name)

Value

(Model) The model object

Arguments

source

(str or Context) Source where to find models. Can be a path (as str or Path), or a Context

name

(str) Name of the model

Examples

Run this code
if (FALSE) {
tooldir_path <- 'path/to/tool/directory'
model <- retrieve_model(tooldir_path, 'run1')
}

Run the code above in your browser using DataLab