check_apsimx | R Documentation |
Partial checking of an apsimx file for possible issues.
check_apsimx(
file = "",
src.dir = ".",
node = c("all", "Clock", "Weather", "Soil"),
soil.child = c("all", "Physical", "InitialWater", "SoilWater", "Solute", "Organic"),
check.apsim.met = FALSE,
root = NULL,
verbose = TRUE
)
file |
file ending in .apsimx to be edited (JSON) |
src.dir |
directory containing the .apsimx file to be checked; defaults to the current working directory |
node |
either ‘all’, ‘Clock’, ‘Weather’, ‘Soil’ |
soil.child |
specific soil component to be checked. |
check.apsim.met |
whether to check the ‘met’ file. Default is FALSE. |
root |
supply the node position in the case of multiple simulations such as factorials. |
verbose |
whether to print information |
It does not return an object, but it prints messages useful for diagnosing issues.
## Check file distributed with the package
extd.dir <- system.file("extdata", package = "apsimx")
check_apsimx("Wheat.apsimx", src.dir = extd.dir)
## This throws warnings but it should not produce errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.