# 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"))
m2 <- m1 %>% child("m2")
m_all <- nm_list_gather()
identical(
m_all %>% subset(run_id(m_all) %in% "m1"),
m1
)
Run the code above in your browser using DataLab