| Option | Short flag | Type | Default | Help text |
|---|---|---|---|---|
--data-path |
-d |
character_option |
/workdir/data/weather_station_data.csv |
"File path of the weather station data" |
--roni-path |
-r |
character_option |
/workdir/data/external/roni_data.csv |
"File path of the ONI data (regional ocean climate data)" |
--output-path |
-o |
character_option |
/workdir/data/processed/weather_classified_data.csv |
"File path of the classified weather data output" |
- No additional options beyond these three.
- Return value changes from named character vector to named list (
optparse::parse_args()output).
- Add
gecioptparsetoImports:(alphabetical order). - Add
IslasGECI/gecioptparsetoRemotes:(followsbycatch_codepattern).
Update tests/testthat/test_get_domain_specific_options.R:
- Keep existing name-check assertion.
- Add
it("has the expected default values")block that asserts the three new defaults.
Expected failure: current stub returns "" for all values, not the new defaults.
Rewrite R/get_domain_specific_options.R:
- Build each option with
gecioptparse::character_option(name, default, help). - Combine into a vector.
- Pass to
gecioptparse::get_options_from_vec(). - Update DESCRIPTION (Imports + Remotes).
- Run
make setupto regenerate NAMESPACE (addsgecioptparseimport).
- Verify help strings render correctly.
- Check
make check(styler format) passes. - Confirm
make testspasses. - Update DOCS.md if return-type description needs adjustment.