Learn R Programming

pmxNODE (version 0.1.0)

find_nmfe: Finde path to NONMEM nmfe file

Description

To run a NONMEM model, a NONMEM nmfeXX file is required, with XX the NONMEM version. When opening the NONMEM command prompt, working directory is usually set to folder, where the nmfe file is located. When running NONMEM from R (with the run_nm function), the path and the nmfe file must be provided (as the nm_path argument). To facilitate the search for the nmfe file, this function can be used.

Usage

find_nmfe(root = "C:/")

Value

Path and name of NONMEM nmfe file, that can directly be used as nm_path argument in the run_nm function.

Arguments

root

(string) Path to the root where NONMEM was installed. Default is "C:/", working if NONMEM was installed directly into the C drive.

Author

Dominic Bräm

Details

This function assumes that the path to the nmfe file is "root/nmXXXX/run/nmfeXX, with XXXX as the NONMEM version. If any special installation settings were applied, this function might not be working.

Examples

Run this code
if (FALSE) {
nmfe_path <- find_nmfe()
run_nm(ctl_file="./test/nm_test.ctl",nm_path=nmfe_path,create_dir=FALSE)
}

Run the code above in your browser using DataLab