Learn R Programming

monolix2rx (version 0.0.6)

mlxTxt: Get equation block from a Monolix model txt file

Description

Get equation block from a Monolix model txt file

Usage

mlxTxt(file, retFile = FALSE)

Value

parsed equation or file name

Arguments

file

string representing the model text file. Can be lib:fileName.txt if library setup/available

retFile

boolean that tells mlxTxt() to return the file name instead of error if the file does not exist

Author

Matthew L. Fidler

Examples

Run this code

# First load in the model; in this case the theo model
# This is modified from the Monolix demos by saving the model
# File as a text file (hence you can access without model library)
# setup.
#
# This example is also included in the monolix2rx package, so
# you refer to the location with `system.file()`:

pkgTheo <- system.file("theo", package="monolix2rx")

mod <- mlxTxt(file.path(pkgTheo, "oral1_1cpt_kaVCl.txt"))

mod

Run the code above in your browser using DataLab