Skip to content

Commit 0d3e180

Browse files
authored
Merge pull request #334 from cmu-delphi/links-docs
Links docs
2 parents 8a604ca + cd807fd commit 0d3e180

23 files changed

Lines changed: 121 additions & 33 deletions

R/endpoints.R

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ NULL
6363
#' )
6464
#'
6565
#' @inheritParams .epidatr_shared_params
66+
#' @param locations character. List of locations to fetch.
67+
#' See [US Regions and States codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) # nolint
68+
#' for details.
6669
#' @return [`tibble::tibble`]
6770
#'
6871
#' @keywords endpoint
@@ -124,6 +127,8 @@ pvt_cdc <- function(
124127
#'
125128
#' @inheritParams .epidatr_shared_params
126129
#' @param state string. A two-letter character state abbreviation.
130+
#' See [US states codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states)
131+
#' for details.
127132
#' @param ccn string. A facility CMS certification number.
128133
#' @param city string. A city name.
129134
#' @param zip string. A 5-digit zip code.
@@ -598,6 +603,9 @@ pub_covid_hosp_facility <- function(
598603
#' )
599604
#'
600605
#' @inheritParams .epidatr_shared_params
606+
#' @param states character. Two-letter state abbreviations.
607+
#' See [US states codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states)
608+
#' for details.
601609
#'
602610
#' @inheritSection .epidatr_shared_params Data Versioning
603611
#'
@@ -1131,6 +1139,8 @@ pub_covidcast <- function(
11311139
#' }
11321140
#' @inheritParams .epidatr_shared_params
11331141
#' @param system character. System name to fetch.
1142+
#' See the [available forecasting systems](https://cmu-delphi.github.io/delphi-epidata/api/delphi.html#forecasting-systems) # nolint
1143+
#' for details.
11341144
#' @param epiweek [`timeset`]. Epiweek to fetch. Does not support multiple dates.
11351145
#' Make separate calls to fetch data for multiple epiweeks.
11361146
#' @return [`list`]
@@ -1169,6 +1179,8 @@ pub_delphi <- function(
11691179
#' )
11701180
#'
11711181
#' @inheritParams .epidatr_shared_params
1182+
#' @param locations character. List of locations to fetch.
1183+
#' See the [codes for countries and territories in the Americas](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#countries-and-territories-in-the-americas). # nolint
11721184
#' @return [`tibble::tibble`]
11731185
#' @keywords endpoint
11741186
#' @export
@@ -1209,6 +1221,10 @@ pub_dengue_nowcast <- function(
12091221
#' )
12101222
#'
12111223
#' @inheritParams .epidatr_shared_params
1224+
#' @param locations character. List of locations to fetch.
1225+
#' See the [codes for countries and territories in the Americas](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#countries-and-territories-in-the-americas). # nolint
1226+
#' @param names character. List of sensor names to fetch.
1227+
#' See the [available sensors](https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html#available-sensors).
12121228
#' @return [`tibble::tibble`]
12131229
#' @keywords endpoint
12141230
#' @export
@@ -1260,6 +1276,8 @@ pvt_dengue_sensors <- function(
12601276
#' pub_ecdc_ili(regions = "austria", epiweeks = epirange(201901, 202001))
12611277
#'
12621278
#' @inheritParams .epidatr_shared_params
1279+
#' @param regions character. List of regions to fetch.
1280+
#' See the [codes for European countries](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#european-countries). # nolint
12631281
#' @return [`tibble::tibble`]
12641282
#'
12651283
#' @inheritSection .epidatr_shared_params Data Versioning
@@ -1324,6 +1342,9 @@ pub_ecdc_ili <- function(
13241342
#' pub_flusurv(locations = "ca", epiweeks = epirange(201701, 201801))
13251343
#' }
13261344
#' @inheritParams .epidatr_shared_params
1345+
#' @param locations character. List of locations to fetch.
1346+
#' See [geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#flusurv-locations)
1347+
#' for details.
13271348
#' @return [`tibble::tibble`]
13281349
#'
13291350
#' @inheritSection .epidatr_shared_params Data Versioning
@@ -1413,7 +1434,8 @@ pub_flusurv <- function(
14131434
#' census divisions, lowercase two-letter state or territory abbreviations
14141435
#' for most states and territories,"jfk" for New York City, or "ny_minus_jfk"
14151436
#' for upstate New York. Full list of locations is available
1416-
#' [here](https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/regions.txt).
1437+
#' [here](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states)
1438+
#' and [here](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#fluview-cities).
14171439
#' @return [`tibble::tibble`]
14181440
#'
14191441
#' @inheritSection .epidatr_shared_params Data Versioning
@@ -1583,10 +1605,10 @@ pub_fluview <- function(
15831605
#'
15841606
#' @details Google has discontinued Flu Trends and this is now a static
15851607
#' endpoint. Possibile input for locations can be found in
1586-
#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/regions.txt>,
1587-
#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/states.txt>,
1608+
#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#hhs-regions>,
1609+
#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states>,
15881610
#' and
1589-
#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/labels/cities.txt>.
1611+
#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#selected-us-cities>.
15901612
#'
15911613
#' @examplesIf curl::has_internet() && Sys.getenv("DELPHI_EPIDATA_KEY") != ""
15921614
#'
@@ -1636,6 +1658,9 @@ pub_gft <- function(
16361658
#' )
16371659
#'
16381660
#' @inheritParams .epidatr_shared_params
1661+
#' @param locations character. List of locations to fetch.
1662+
#' See [geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-states-and-territories) # nolint
1663+
#' for details.
16391664
#' @param query string. The query to be fetched.
16401665
#' @return [`tibble::tibble`]
16411666
#' @keywords endpoint
@@ -1680,6 +1705,9 @@ pvt_ght <- function(
16801705
#' pub_kcdc_ili(regions = "ROK", epiweeks = 200436)
16811706
#'
16821707
#' @inheritParams .epidatr_shared_params
1708+
#' @param regions character. List of regions to fetch.
1709+
#' See [South Korea's geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#republic-of-korea) # nolint
1710+
#' for details.
16831711
#' @return [`tibble::tibble`]
16841712
#'
16851713
#' @inheritSection .epidatr_shared_params Data Versioning
@@ -1781,6 +1809,9 @@ pub_meta <- function(fetch_args = fetch_args_list()) {
17811809
#' pub_nidss_dengue(locations = "taipei", epiweeks = epirange(201201, 201301))
17821810
#'
17831811
#' @inheritParams .epidatr_shared_params
1812+
#' @param locations character. List of locations to fetch.
1813+
#' See [Taiwan's geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#nidss)
1814+
#' for details.
17841815
#'
17851816
#' @return [`tibble::tibble`]
17861817
#' @keywords endpoint
@@ -1820,6 +1851,9 @@ pub_nidss_dengue <- function(
18201851
#' pub_nidss_flu(regions = "taipei", epiweeks = epirange(201501, 201601))
18211852
#'
18221853
#' @inheritParams .epidatr_shared_params
1854+
#' @param regions character. List of regions to fetch.
1855+
#' See [Taiwan's geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#nidss)
1856+
#' for details.
18231857
#' @return [`tibble::tibble`]
18241858
#'
18251859
#' @inheritSection .epidatr_shared_params Data Versioning
@@ -1929,8 +1963,8 @@ pvt_norostat <- function(
19291963
#' Obtains information on outpatient inluenza-like-illness (ILI) from Delphi's
19301964
#'
19311965
#' @details The full list of location inputs can be accessed at
1932-
#' <https://github.com/cmu-delphi/delphi-epidata/blob/main/src/acquisition/fluview/fluview_locations.py>.
1933-
#'
1966+
#' <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states>
1967+
#' and <https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#fluview-cities>.
19341968
#' @examplesIf curl::has_internet() && Sys.getenv("DELPHI_EPIDATA_KEY") != ""
19351969
#'
19361970
#' pub_nowcast(locations = "ca", epiweeks = epirange(201201, 201301))
@@ -1971,6 +2005,9 @@ pub_nowcast <- function(
19712005
#' pub_paho_dengue(regions = "ca", epiweeks = epirange(201401, 201501))
19722006
#'
19732007
#' @inheritParams .epidatr_shared_params
2008+
#' @param regions character. List of regions to fetch.
2009+
#' See [Americas' geographic codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#countries-and-territories-in-the-americas) # nolint
2010+
#' for details.
19742011
#' @return [`tibble::tibble`]
19752012
#'
19762013
#' @inheritSection .epidatr_shared_params Data Versioning
@@ -2035,6 +2072,9 @@ pub_paho_dengue <- function(
20352072
#' )
20362073
#'
20372074
#' @inheritParams .epidatr_shared_params
2075+
#' @param locations character. List of locations to fetch.
2076+
#' See [HHS regions' codes](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#hhs-regions)
2077+
#' for details.
20382078
#' @return [`tibble::tibble`]
20392079
#' @keywords endpoint
20402080
#' @export
@@ -2091,6 +2131,12 @@ pvt_quidel <- function(
20912131
#' )
20922132
#'
20932133
#' @inheritParams .epidatr_shared_params
2134+
#' @param names character. List of sensor names to fetch.
2135+
#' See the [data sources available](https://cmu-delphi.github.io/delphi-epidata/api/sensors.html#data-sources)
2136+
#' for details.
2137+
#' @param locations character. List of locations to fetch.
2138+
#' See the codes of the [US regions and states](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) # nolint
2139+
#' for details.
20942140
#' @return [`tibble::tibble`]
20952141
#' @keywords endpoint
20962142
#' @export
@@ -2144,6 +2190,9 @@ pvt_sensors <- function(
21442190
#' )
21452191
#'
21462192
#' @inheritParams .epidatr_shared_params
2193+
#' @param locations character. List of locations to fetch.
2194+
#' See the codes of the [US regions and states](https://cmu-delphi.github.io/delphi-epidata/api/geographic_codes.html#us-regions-and-states) # nolint
2195+
#' for details.
21472196
#' @return [`tibble::tibble`]
21482197
#' @keywords endpoint
21492198
#' @export
@@ -2222,6 +2271,8 @@ pvt_twitter <- function(
22222271
#'
22232272
#' @inheritParams .epidatr_shared_params
22242273
#' @param articles character. Articles to fetch.
2274+
#' See [available articles](https://cmu-delphi.github.io/delphi-epidata/api/wiki.html#available-articles)
2275+
#' for details.
22252276
#' @param language string. Language to fetch.
22262277
#' @param hours integer. Optionally, the hours to fetch.
22272278
#' @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/pub_covid_hosp_facility_lookup.Rd

Lines changed: 3 additions & 1 deletion
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: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_delphi.Rd

Lines changed: 3 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: 2 additions & 1 deletion
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: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pub_flusurv.Rd

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

man/pub_fluview.Rd

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

man/pub_fluview_clinical.Rd

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

0 commit comments

Comments
 (0)