Different tests for the user-inputed parameter files:

Mandatory parameter

Test if all mandatory parameters are present in the files

Parameter values

Some parameter values are checked before running

test_parameters(Parameters, isTree = FALSE)

Arguments

Parameters

The full list of parameter values, generally output from Import_Parameters()

isTree

Boolean. Set to TRUE if shade trees are simulated.

Value

An error if any issue is encountered

Examples

# No error: test_parameters(Parameters= Import_Parameters()) # \donttest{ # Removing a mandatory parameter from the soil: params= Import_Parameters() params$REWc= NULL test_parameters(Parameters= params)
#> Error: Missing parameter in soil parameter file: REWc
# }