retrieve_model: retrieve_model

View source: R/functions_wrapper.R

retrieve_modelR Documentation

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)

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

Value

(Model) The model object

Examples

## Not run: 
tooldir_path <- 'path/to/tool/directory'
model <- retrieve_model(tooldir_path, 'run1')

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.