Closed lilyclements closed 1 year ago
Patch and project coverage have no change.
Comparison is base (
1a676ce
) 0.00% compared to head (91bc336
) 0.00%.:exclamation: Current head 91bc336 differs from pull request most recent head f49ca11. Consider uploading reports for the commit f49ca11 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@lloyddewit in terms of examples, I have some in the help file that will run if you remove the "#" symbol before them.
For this function we have six parameters
country,
station_id,
planting_dates = NULL, - takes a list `c(...)` of numerics, e.g., `c(100, 150)`
water_requirements = NULL, - takes a list `c(...)` of numerics, e.g., `c(100, 150)`
crop_length = NULL, - takes a list `c(...)` of numerics, e.g., `c(100, 150)`
start_before_season = NULL - takes `TRUE`, `FALSE`, or `NULL`. If you write `TRUE` or `FALSE`, you overwrite the value in the json file.
The bottom four can either be run by definitions in a json file which are read in, or they can be manually inputted. Or a mixture of both.
# just by json (because we have defined and saved it in a json file)
crop_success_probabilities(country = "zm", station_id = "16")
If we fill in these additional four parameters, we overwrite the value in the json file.
# All by json except for water_requirements which we define in the parameter code
crop_success_probabilities(country = "zm", station_id = "16", water_requirements = c(100, 300, 800))
# All defined in dialog
crop_success_probabilities(country = "zm", station_id = "16", water_requirements = c(100, 300, 800),
crop_length = c(100, 150), planting_dates = c(90, 100, 110))
Does this make sense?
@thanks, I added new wrapper tests for all 6 parameters
Fixes #23