Different tests for the user-inputed parameter files:
Test if all mandatory parameters are present in the files
Some parameter values are checked before running
test_parameters(Parameters, isTree = FALSE)
Parameters | The full list of parameter values, generally output from |
---|---|
isTree | Boolean. Set to |
An error if any issue is encountered
# 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# }