inlineModel: inline model

Description Usage Arguments Details Value Examples

View source: R/inlineModel.R

Description

Define a model "inline"

Usage

1
inlineModel(str, filename = NULL)

Arguments

str

model

filename

name of the temporary model file

Details

A temporary model file filename is created. Default name is "tempModel.txt". filename="random" generates a random name.

Value

A Shiny app with files ui.R, server.R and model.txt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
myModel1 <- inlineModel("
[LONGITUDINAL]
EQUATION:
f = 10*exp(-0.2*t)
")

print(myModel1)

r <- simulx(model=myModel1, output=list(name="f", time=0:100))

myModel2 <- inlineModel("
[LONGITUDINAL]
EQUATION:
f = 10*exp(-0.2*t)
", filename="random")

print(myModel2)

## End(Not run)

mlxR documentation built on Jan. 19, 2021, 5:06 p.m.