nm_diff | R Documentation |
The easiest way to use this function is via the "view diff" RStudio 'Addin'.
NMproject's control file manipulation functions (e.g. subroutine()
)
may not work for all control files. It is the responsibility of
the user to check automatic manipulations are done properly.
Displaying diffs provides a means of manually checking what was done.
nm_diff(m, ref_m, format = "raw")
m |
An nm object. |
ref_m |
An optional nm object (base/reference object). If not
specified, it will compute the diff the initial control file contents
associated with the object at the time of object create. This information
is stored in the |
format |
Character (default = |
Invisibly returns a character
vector of the diff.
# 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(run_id = "m2") %>% subroutine(advan = 2, trans = 2) nm_diff(m2, m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.