Function to run NM-TRAN on a model object to validate its control stream
for correct coding before submission. The NM-TRAN dataset (FDATA) and
other NONMEM artifacts can be further inspected by keeping the run directory
around.
Usage
run_nmtran(
.mod,
.bbi_args = NULL,
.config_path = NULL,
run_dir = tempdir(),
clean = TRUE
)Arguments
- .mod
A
bbi_nonmem_modelobject.- .bbi_args
A named list specifying arguments to pass to
NM-TRAN. Similar to the.bbi_argsargument defined insubmit_model(), though here onlyprdefault,tprdefault, andmaxlimarguments are passed toNM-TRAN.nm_versionis also supported and specifies whichNM-TRANexecutable to use. Seeprint_bbi_args()for more details.- .config_path
Path to a bbi configuration file. If
NULL, the default, will attempt to use abbi.yamlin the same directory as the model.- run_dir
Directory to run
NM-TRANin. Only relevant ifclean = FALSE.- clean
Logical (
T/F). IfFALSE, don't delete the temporary directory containing theNM-TRANrun.
Details
NM-TRAN is a preprocessor for NONMEM that translates user-specified
control stream data and instructions into a form executable by NONMEM.
Note that nmtran_presort is run ahead of NM-TRAN for NONMEM 7.4 and later
nmtran_presortis a supplementary utility that preprocesses the control stream to ensure it is in the correct format forNM-TRAN.
Examples
if (FALSE) { # \dontrun{
mod <- read_model(file.path(MODEL_DIR, 1))
run_nmtran(mod, .bbi_args = list(nm_version = "nm74gf"))
# Save the run directory for manual inspection
run_nmtran(mod, clean = FALSE, run_dir = getwd())
} # }
