inspect_apsim_xml: Inspect an APSIM Classic auxiliary (XML) file

View source: R/inspect_apsim_xml.R

inspect_apsim_xmlR Documentation

Inspect an APSIM Classic auxiliary (XML) file

Description

inspect an auxiliary XML apsim file.

Usage

inspect_apsim_xml(
  file = "",
  src.dir = ".",
  parm,
  verbose = TRUE,
  print.path = TRUE
)

Arguments

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

Value

it returns an absolute parameter path(s)

Note

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.

Examples

 

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)


apsimx documentation built on Sept. 11, 2024, 5:42 p.m.