[Stable]

This is primarily a backend function used to identify output file paths associated with nm objects.

nm_output_path(m, extn, file_name)

Arguments

m

An nm object.

extn

Character. Name of extension.

file_name

Optional character. Name of file name.

Value

The path to the relevant output file of m.

Examples


# 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"))

m1 %>% nm_output_path("ext") ## path to ext file
#> [1] "Models/m1/NM_run1/psn.ext"