tests/testthat/test.CropModels.R

## This tests that each crop model is well defined, and, if necessary, that
## re-running a previously-run simulation yields the same result as before.
##
## If any of the crop-specific defaults for the initial values, parameters,
## modules or weather data change, or if the behavior of any of these modules
## changes, the stored data for one or more crops will likely need to be
## updated. Instructions for doing so are included in
## `regression_testing_helper_functions.R`.

source('crop_model_testing_helper_functions.R')

# Run all the tests
for(i in 1:length(PLANT_TESTING_INFO)) {
    test_plant_model(PLANT_TESTING_INFO[[i]])
}

Try the BioCro package in your browser

Any scripts or data that you put into this service are public.

BioCro documentation built on May 29, 2024, 10:30 a.m.