Skip to content

Commit 0499d05

Browse files
committed
small wording changes to params and rebuild docs
1 parent 427cc56 commit 0499d05

25 files changed

+146
-68
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Changes
44

5-
- Improve documentation, including descriptions for `save_api_key()` and endpoint parameters (#324).
5+
- Improve documentation, including descriptions for `save_api_key()` and endpoint parameters, and standardize parameter information (#324).
66

77
## Features
88

R/endpoints.R

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
#' @keywords internal
77
#'
88
#' @param auth string. Your restricted access key (not the same as API key).
9-
#' @param locations character. Vector of locations to fetch.
10-
#' @param states character. Two letter state abbreviations.
11-
#' @param regions character. Vector of regions to fetch.
9+
#' @param locations character. List of locations to fetch.
10+
#' @param states character. List of states to fetch, formatted as two letter state abbreviations.
11+
#' @param regions character. List of regions to fetch.
1212
#' @param epiweeks [`timeset`]. Epiweeks to fetch. Supports
13-
#' [`epirange()`] and defaults to all ("*") dates.
13+
#' [`epirange()`] and defaults to all ("*") dates. Format as
14+
#' `epirange(startweek, endweek)`, where startweek and endweek are of the form
15+
#' YYYYWW (string or numeric).
1416
#' @param time_type string. The temporal resolution of the data (either "day" or
1517
#' "week", depending on signal).
16-
#' @param names character. Names to fetch.
17-
#' [`epirange()`] and defaults to all ("*") dates.
18+
#' @param names character. Sensor names to fetch.
1819
#' @param dates [`timeset`]. Dates to fetch. Supports
1920
#' [`epirange()`] and defaults to all ("*") dates.
2021
#' @param time_values [`timeset`]. Dates or epiweeks to fetch.
@@ -36,10 +37,14 @@
3637
#' \itemize{
3738
#' \item \code{as_of}: (Date) Retrieve the data as it was on this date.
3839
#' \item \code{issues}: [`timeset`] Retrieve data from a
39-
#' specific issue date or range.
40+
#' specific issue date or range of dates.
4041
#' \item \code{lag}: (integer) Retrieve data with a specific lag from
4142
#' its issue date.
4243
#' }
44+
#'
45+
#' If none of these is specified, the most recent version of the data is
46+
#' returned.
47+
#'
4348
#' See `vignette("versioned-data")` for details and more ways to specify
4449
#' versioned data.
4550
NULL
@@ -1316,7 +1321,7 @@ pub_ecdc_ili <- function(
13161321
#'
13171322
#' @examples
13181323
#' \dontrun{
1319-
#' pub_flusurv(locations = "CA", epiweeks = epirange(201701, 201801))
1324+
#' pub_flusurv(locations = "ca", epiweeks = epirange(201701, 201801))
13201325
#' }
13211326
#' @inheritParams .epidatr_shared_params
13221327
#' @return [`tibble::tibble`]

man/covidcast_epidata.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dot-epidatr_shared_params.Rd

Lines changed: 12 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_covid_hosp_state_timeseries.Rd

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_covidcast.Rd

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_dengue_nowcast.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_ecdc_ili.Rd

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_flusurv.Rd

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_fluview.Rd

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)