nm_tran_command: Get/set nm_tran_command

View source: R/NMproject-options.R

nm_tran_commandR Documentation

Get/set nm_tran_command

Description

[Stable]

The function nm_tran() needs the location of NMTRAN.exe to function. This is guessed at package load, assuming PsN is on the $PATH environmental variable. If this is not the case, then you can manually set the path and command used.

Usage

nm_tran_command(text)

Arguments

text

Optional character. If specified will set nm_tran_command otherwise it will display the current option value.

Details

text can just be the path to NMTRAN.exe in which case nm_tran_command will use the format /path/to/NMTRAN.exe < {ctl_name} to launch NMTRAN.exe where {ctl_name} is the name of the control file. Specifying

nm_tran_command("/path/to/NMTRAN.exe < {ctl_name}") is equivalent to: nm_tran_command("/path/to/NMTRAN.exe")

More complicated formats are possible with different installations which can be seen examples.

As with all NMproject configuration options set this up either at the beginning of your script, in your .Rprofile or for all users in Rprofile.site. See FAQ for setting up configuration options permanently.

Value

If text is missing will get and return the current NMTRAN command.

See Also

find_nm_tran_path(), nm_tran()

Examples


orig_cmd <- nm_tran_command()
orig_cmd

# the following two are equivalent
nm_tran_command("/opt/NONMEM/nm75/tr/NMTRAN.exe")
nm_tran_command()

nm_tran_command("/opt/NONMEM/nm75/tr/NMTRAN.exe < {ctl_name}")
nm_tran_command()

nm_tran_command(orig_cmd)


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.