Write, compile, and load model code
mcode(model, code, project = getOption("mrgsolve.project", tempdir()), ...) mcode_cache( model, code, project = getOption("mrgsolve.project", tempdir()), ... )
model |
model name |
code |
character string specifying a |
project |
project name |
... |
passed to |
Note that the arguments are in slightly different order than
mread
. The default project
is tempdir()
.
See the mread
help topic for discussion about caching
compilation results with mcode_cache
.
## Not run: code <- ' $CMT DEPOT CENT $PKMODEL ncmt=1, depot=TRUE $MAIN double CL = 1; double V = 20; double KA = 1; ' mod <- mcode("example",code) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.