Extracts the directory path from a hyperion_nonmem_model object.
Arguments
- model
A hyperion_nonmem_model object
- absolute
Logical; if TRUE, resolve
model_sourceusingfrom_config_relative()before extracting the directory. Default FALSE.
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"
} # }