Description Usage Arguments Details Value Examples
Define a model "inline"
1 | inlineModel(str, filename = NULL)
|
str |
model |
filename |
name of the temporary model file |
A temporary model file filename
is created. Default name is "tempModel.txt"
.
filename="random"
generates a random name.
A Shiny app with files ui.R, server.R and model.txt
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.