Skip to contents

Extracts the directory path from a hyperion_nonmem_model object.

Usage

get_model_dir(model, absolute = FALSE)

Arguments

model

A hyperion_nonmem_model object

absolute

Logical; if TRUE, resolve model_source using from_config_relative() before extracting the directory. Default FALSE.

Value

Character string with the model directory path

Examples

if (FALSE) { # \dontrun{
mod <- read_model("models/run001.mod")
get_model_dir(mod) # "models" (config-relative)
get_model_dir(mod, absolute = TRUE) # "/path/to/project/models"
} # }