pmx_read_nm_model: NONMEM model file parser

Description Usage Arguments Value See Also Examples

View source: R/pmx_read_nm_model.R

Description

Parse NONMEM model files in R format

Usage

1
2
3
4
5
6
7
pmx_read_nm_model(
  runno = NULL,
  prefix = "run",
  ext = ".lst",
  file = NULL,
  dir = NULL
)

Arguments

runno

run number which is used for generating the model file name

prefix

Prefix to be used to generate model file name. Used in combination with runno and ext.

ext

Extension to be used to generate model file name. Should be one of'.lst' (default), '.out', '.res', '.mod' or '.ctl' for NONMEM.

file

A character vector of path to the files or a nm_table_list object created with list_nm_tables.

dir

directory of the model files.

Value

A tibble of class model containing the following columns:

See Also

pmx_read_nm_tables

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Using the `file` argument to import a model file:
nm_model <- pmx_read_nm_model(file = 'run001.lst', dir = 'models')

# Using the `runno` argument to import a model file:
nm_model <- pmx_read_nm_model(runno = '001', ext = '.lst', dir = 'models')

## End(Not run)

ggPMX documentation built on Sept. 20, 2021, 5:09 p.m.