-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterize key query fields in riem_measures() (#48)
* Parameterize 'data' field in riem_measures() * Add comment linking field documentation * Parameterize 'elev' field in riem_measures() * Parameterize 'latlon' field in riem_measures() * Parameterize 'report_type' field in riem_measures(); Skip HFMETAR by default * Choose a safer default date_start * Speficy nometa = no, since parsing counts on column names * Update self-documentation for riem_measures() * Update test fixtures files since default endpoint query changed * Document * Preserve order of riem_measures() positional arguments; Remove default values for station, date_start args (thus making them required); Convert elev and latlon to logicals; Update DESCRIPTION and documentation * Specify the now-required station srgument in test-measures.R * Correct copy/paste error * Specify the now-required date_start argument in test-measures.R * Add call to rlang::check_dots_empty() in riem_measures() * Add better validation for new riem_measures() args * Specify the now-required station srgument in test-measures.R * Correct order of args in documentation * refactor: use `rlang::is_character()` * refactor: make report_type's input more readable * test: add test for new parameters * Address lintr warnings * Add new tests; Address lintr warnings * fix: remove duplicate import * docs: improve documentation of `report_type` * refactor: remove unnecessary lambda * docs: update NEWS.md * formatting * latlon * docs: clarify report * refactor: validate data * Permit new 'data' arg validation to accept multiple fields (and add associated test); Add/update comments for clarity * Update param documentation to contain default values; Correct report_type comment * Address lintr warnings --------- Co-authored-by: Maëlle Salmon <maelle.salmon@yahoo.se>
- Loading branch information
Showing
16 changed files
with
2,550 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.