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

View source: R/apsimx.R

check_apsimxR Documentation

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
)

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

Value

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

Examples



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


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