View source: R/inspect_apsim_xml.R
inspect_apsim_xml | R Documentation |
inspect an auxiliary XML apsim file.
inspect_apsim_xml(
file = "",
src.dir = ".",
parm,
verbose = TRUE,
print.path = TRUE
)
file |
file ending in .xml to be inspected. |
src.dir |
directory containing the .xml file to be inspected; defaults to the current working directory |
parm |
parameter to inspect. |
verbose |
Whether to print to standard output |
print.path |
Whether to print the parameter path |
it returns an absolute parameter path(s)
the behavior has changed from previous verions (earlier than 1.977). Before, if more than match was found it would return an error. Now it returns a list with all possible matches. This can be useful when trying to find a parameter.
extd.dir <- system.file("extdata", package = "apsimx")
inspect_apsim_xml("Maize75.xml", src.dir = extd.dir,
parm = "leaf_no_rate_change")
pp <- inspect_apsim_xml("Maize75.xml", src.dir = extd.dir,
parm = "leaf_no_rate_change",
verbose = FALSE,
print.path = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.