prioritizePaths: first path that works

View source: R/prioritizePaths.R

prioritizePathsR Documentation

first path that works

Description

When using scripts on different systems, the Nonmem path may change from run to run. With this function you can specify a few paths, and it will return the one that works on the system in use.

Usage

prioritizePaths(paths, must.work = FALSE)

Arguments

paths

vector of file paths. Typically to Nonmem executables.

must.work

If TRUE, an error is thrown if no paths are valid.


NMsim documentation built on Sept. 9, 2025, 5:33 p.m.