Learn R Programming

pmxNODE (version 0.1.0)

run_nm: Run NONMEM from R

Description

Runs NONMEM from R

Usage

run_nm(
  ctl_file,
  nm_path,
  parralel_command = NULL,
  create_dir = TRUE,
  data_file = NULL
)

Value

No return value, running the specified model in NONMEM via command line.

Arguments

ctl_file

(string) Absolute or relative Path/Name of NONMEM file to run. Must be in R-style, i.e., path must be with slashes. File must be given with file extension, e.g., nonmem_file.ctl

nm_path

(string) Absolute or relative Path/Name of NONMEM to be executed,
e.g., "C:/nm75g64/run/nmfe75".

parralel_command

(string) (Optional) Command for parralel NONMEM execution,
e.g., "-parafile=C:/nm75g64/run/mpiwini8.pnm [nodes]=30"

create_dir

(boolean) If NONMEM file should be run and saved in new directory. If TRUE, new directory of type path_to_ctl_file/ctl_name will be created. Default is TRUE.

data_file

(string) Absolute or relative Path/Name of data file to be used in the NONMEM run. Required if create_dir=TRUE as data file will be copied to new directory.

Author

Dominic Bräm

Details

All paths must be given in R-style, i.e., slashes instead of backslashes. Paths can be absolute or relative.

Examples

Run this code
if (FALSE) {
run_nm("./test/nm_test.ctl","c:/nm75g64/run/nmfe75",
       parralel_command = "-parafile=C:/nm75g64/run/mpiwini8.pnm [nodes]=30",
       data_file="~/Test/test/test_data.csv")
}

Run the code above in your browser using DataLab