inlineModel: Inline model

View source: R/smlx-tools.R

inlineModelR Documentation

Inline model

Description

Save a string in a temporary file to be used as a model file

Usage

inlineModel(srtIn, filename = NULL)

Arguments

srtIn

(string) Model in string format,

filename

(string) name of the model file (by default the model is saved in a temporary file)

Value

Name of the model file

Examples

## Not run: 
myModel <- inlineModel("
[LONGITUDINAL]
input = {A, k, c, a}
EQUATION:
t0    = 0
f_0   = A
ddt_f = -k*f/(c+f)
DEFINITION:
y = {distribution=normal, prediction=f, sd=a}
[INDIVIDUAL]
input = {k_pop, omega}
DEFINITION:
k = {distribution=lognormal, prediction=k_pop, sd=omega}
")

## End(Not run)

RsSimulx documentation built on April 20, 2023, 5:08 p.m.