| mlxtran | R Documentation |
Read and parse mlxtran lines
mlxtran(file, equation = FALSE, update = FALSE, dirn = NULL)
file |
mlxtran file to process |
equation |
parse the equation block to rxode2 (some models cannot be translated) |
update |
when true, try to update the parameter block to the final parameter estimates |
dirn |
directory of the Monolix project |
mlxtran object
Matthew L. Fidler
# First load in the model; in this case the theo model
#
# This example is also included in the monolix2rx package, so
# you refer to the location with `system.file()`:
pkgTheo <- system.file("theo", package="monolix2rx")
mlx <- mlxtran(file.path(pkgTheo, "theophylline_project.mlxtran"))
mlx
# Sometimes the project directory can't
# inferred anymore; in that case give it with `dirn`:
lines <- readLines(file.path(pkgTheo, "theophylline_project.mlxtran"))
mlx <- mlxtran(lines, dirn=pkgTheo)
mlx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.