importNmMod: Parse a NONMEM control file

Description Usage Arguments Value Note Author(s) Examples

View source: R/importNmMod.R

Description

Parses a NONMEM control file, and returns its contents as a list of parsed elements. These elements will correspond to the actual control statements, e.g. $PK, $THETA, $PROBLEM, etc. Some of the elements are kept as pure text.

Usage

1
importNmMod(fileName, path, version="VI", textReport=FALSE)

Arguments

fileName

File name name of the control file

path

(optional) path to the control file, can be a stored path enclosed in round brackets

version

NONMEM version that the control file targets. Currently, "VII" or "7" denotes NONMEM 7, and other values are not differentiated

textReport

Logical flag. If TRUE, a message regarding which file is being imported will be logged.

Value

A list with parsed components of the control file. This will be of class nmModel.

Note

An execption will be generated if $PRIOR NWPRI is found in a control file and NONMEM version VII was used. If the control file is empty, an exception will also be generated.

Author(s)

Mango Solutions

Examples

1
2
3
4
5
## Not run: 
conContents <- importNmMod(file = "theoph.con", path = "examples/theoph") 
print(conContents)

## End(Not run)

RNMImport documentation built on May 2, 2019, 5:21 p.m.