code: Extract the code from a model

View source: R/modlib.R

codeR Documentation

Extract the code from a model

Description

This function is currently not exported, so be sure to call it with mrgsolve:::code(...).

Usage

code(x)

Arguments

x

a model object.

Value

A character vector of model code.

Examples

mod <- mrgsolve::house()
mrgsolve:::code(mod)

# Alternative
as.list(mod)$code


metrumresearchgroup/mrgsolve documentation built on April 13, 2025, 9:43 a.m.