find_nonmem_model_file_path: Find the path to a NONMEM model file

View source: R/get-path-from-object.R

find_nonmem_model_file_pathR Documentation

Find the path to a NONMEM model file

Description

NONMEM recognizes two model file extensions, .ctl and (less common) .mod. Look for these at .path and if exactly one exists, return it. If both exist, throw an error, because there is no way to know which should be used. If neither exists and .check_exists = TRUE, throw an error.

Usage

find_nonmem_model_file_path(.path, .check_exists = TRUE)

Arguments

.path

File path to a NONMEM model file (control stream) with either .ctl or .mod extension.

.check_exists

If TRUE, the default, will throw an error if the file does not exist

Value

The path to the model file, if it exists. If the model file does not exist and .check_exists = FALSE, a string that is .path with the .ctl extension.


metrumresearchgroup/rbabylon documentation built on April 21, 2024, 3:26 a.m.