-
Notifications
You must be signed in to change notification settings - Fork 96
Fix some time issues #854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some time issues #854
Changes from all commits
10ad022
269cea2
0193308
a41a9d1
db921fc
5f93f39
2afa35d
37496fd
6ad31b0
30619ad
f5b245e
d45209b
e97c3fc
aad430c
e1919fa
e2e6e34
ac61e82
39f8208
bad5428
1043d24
0963952
9515c0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,14 +10,14 @@ | |
| #' @param statistic_id `r get_ogc_params("daily")$statistic_id` | ||
| #' Multiple statistic_ids can be requested as a character vector. | ||
| #' @param time `r get_ogc_params("daily")$time` | ||
| #' You can also use a vector of length 2: the first value being the starting date, | ||
| #' the second value being the ending date. NA's within the vector indicate a | ||
| #' half-bound date. For example, c("2024-01-01", NA) will return all data starting | ||
| #' at 2024-01-01. | ||
| #' | ||
| #' See also Details below for more information. | ||
| #' @param value `r get_ogc_params("daily")$value` | ||
| #' @param unit_of_measure `r get_ogc_params("daily")$unit_of_measure` | ||
| #' @param approval_status `r get_ogc_params("daily")$approval_status` | ||
| #' @param last_modified `r get_ogc_params("daily")$last_modified` | ||
| #' | ||
| #' See also Details below for more information. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These don't all have Details, right?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 49 below: Brings the same "Detail" paragraph into other functions' help page
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahhhh ok, neat. Thanks for sharing that. |
||
| #' @param time_series_id `r get_ogc_params("daily")$time_series_id` | ||
| #' Multiple time_series_ids can be requested as a character vector. | ||
| #' @param qualifier `r get_ogc_params("daily")$qualifier` | ||
|
|
@@ -45,6 +45,9 @@ | |
| #' be requested from a native csv format. This can be dangerous because the | ||
| #' data will cut off at 50,000 rows without indication that more data | ||
| #' is available. Use `TRUE` with caution. | ||
| #' | ||
| #' @inherit read_waterdata_continuous details | ||
| #' | ||
| #' @examplesIf is_dataRetrieval_user() | ||
| #' | ||
| #' \donttest{ | ||
|
|
@@ -82,7 +85,11 @@ | |
| #' | ||
| #' dv_post <- read_waterdata_daily(monitoring_location_id = site, | ||
| #' approval_status = c("Approved", "Provisional")) | ||
| #' | ||
| #' # Don't attach "request" attribute: | ||
| #' options("dataRetrieval.attach_request" = FALSE) | ||
| #' dv_data_no_request <- read_waterdata_daily(monitoring_location_id = site, | ||
| #' parameter_code = "00060", | ||
| #' time = c("2021-01-01", "2022-01-01")) | ||
| #' } | ||
| read_waterdata_daily <- function(monitoring_location_id = NA_character_, | ||
| parameter_code = NA_character_, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I tried this with a lowercase "p7d" and "p7D" and the API will not have it. I don't think there's necessarily anything you need to do here, just a random test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can plop a
toupperin there, good to know!