The function run_dir()
gives the directory name, whereas this function gets
the (relative) path of run_dir()
.
run_dir_path(m)
An nm object.
A path to the run_dir
field of m
.
# create example object m1 from package demo files
exdir <- system.file("extdata", "examples", "theopp", package = "NMproject")
m1 <- new_nm(run_id = "m1",
based_on = file.path(exdir, "Models", "ADVAN2.mod"),
data_path = file.path(exdir, "SourceData", "THEOPP.csv"))
run_dir_path(m1)
#> [1] "Models/m1"