nm_output_path: Find an output file associated with a run

View source: R/post-run-summaries.R

nm_output_pathR Documentation

Find an output file associated with a run

Description

[Stable]

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

Usage

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


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.