# Example 1: missing a parameter and an initial value
validate_dynamical_system_inputs(
within(soybean$initial_values, rm(Leaf)), # remove the initial `Leaf` value
within(soybean$parameters, rm(leaf_reflectance)), # remove `leaf_reflectance`
soybean_weather$'2002',
soybean$direct_modules,
soybean$differential_modules
)
# Example 2: a valid set of input arguments
validate_dynamical_system_inputs(
soybean$initial_values,
soybean$parameters,
soybean_weather$'2002',
soybean$direct_modules,
soybean$differential_modules
)
Run the code above in your browser using DataLab