Learn R Programming

apsimx (version 2.8.0)

check_apsimx: Partial checking of an apsimx file for possible issues.

Description

Partial checking of an apsimx file for possible issues.

Usage

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
)

Value

It does not return an object, but it prints messages useful for diagnosing issues.

Arguments

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

Examples

Run this code
# \donttest{

## 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
# }

Run the code above in your browser using DataLab