Skip to content

Commit 7c579ac

Browse files
authored
Merge pull request #171 from cmu-delphi/cleanupCleanup
Cleanup cleanup
2 parents 18a7ec0 + 44c8730 commit 7c579ac

34 files changed

+81
-63
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: epidatr
22
Type: Package
3-
Title: Client for Delphi's Epidata API
3+
Title: Client for Delphi's 'Epidata' API
44
Version: 1.0.0
55
Authors@R:
66
c(
@@ -17,7 +17,7 @@ Authors@R:
1717
)
1818
URL: https://cmu-delphi.github.io/epidatr/, https://github.com/cmu-delphi/epidatr
1919
BugReports: https://github.com/cmu-delphi/epidatr/issues
20-
Description: R Client for Delphi's Epidata API. Tools for fetching data in various forms.
20+
Description: R Client for Delphi's 'Epidata' API. Tools for fetching data in various forms.
2121
Depends: R (>= 3.5.0)
2222
License: MIT + file LICENSE
2323
Encoding: UTF-8

R/cache.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ set_cache <- function(cache_dir = NULL,
187187
#' }
188188
#' @param disable instead of setting a new cache, disable caching entirely;
189189
#' defaults to `FALSE`
190-
#' @param ... arguments passed to `set_cache`
190+
#' @inheritDotParams set_cache
191191
#' @seealso [`set_cache`] to start a new cache (and general caching info),
192192
#' [`disable_cache`] to only disable without deleting, and [`cache_info`]
193193
#' @export

R/endpoints.R

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
1717
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1818
#' See `fetch_args_list()` for details.
19-
#' @return [`epidata_call`]
19+
#' @return [`tibble`]
2020
#'
2121
#' @keywords endpoint
2222
#' @export
@@ -76,7 +76,7 @@ pvt_cdc <- function(auth, locations, epiweeks, fetch_args = fetch_args_list()) {
7676
#' @param zip string. A 5-digit zip code.
7777
#' @param fips_code string. A 5-digit fips county code, zero-padded.
7878
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
79-
#' @return [`epidata_call`]
79+
#' @return [`tibble`]
8080
#'
8181
#' @seealso [`pub_covid_hosp_facility()`]
8282
#' @keywords endpoint
@@ -161,7 +161,7 @@ pub_covid_hosp_facility_lookup <- function(
161161
#' @param ... not used for values, forces later arguments to bind by name
162162
#' @param publication_dates [`timeset`]. Publication dates to fetch.
163163
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
164-
#' @return [`epidata_call`]
164+
#' @return [`tibble`]
165165
#'
166166
#'
167167
#' @seealso [`pub_covid_hosp_facility()`], [`epirange()`]
@@ -464,7 +464,7 @@ pub_covid_hosp_facility <- function(
464464
#' most recent issue is returned.
465465
#' @param ... not used for values, forces later arguments to bind by name
466466
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
467-
#' @return [`epidata_call`]
467+
#' @return [`tibble`]
468468
#'
469469
#' @keywords endpoint
470470
#' @export
@@ -610,7 +610,7 @@ pub_covid_hosp_state_timeseries <- function(states, dates, ..., issues = NULL, f
610610
#'
611611
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
612612
#'
613-
#' @return [`epidata_call`]
613+
#' @return [`tibble`]
614614
#'
615615
#'
616616
#' @examples
@@ -696,7 +696,7 @@ pub_covidcast_meta <- function(fetch_args = fetch_args_list()) {
696696
#' the most recent issue is returned. Mutually exclusive with `as_of` or
697697
#' `issues`.
698698
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
699-
#' @return [`epidata_call`]
699+
#' @return [`tibble`]
700700
#'
701701
#'
702702
#' @seealso [pub_covidcast_meta()], [covidcast_epidata()], [epirange()]
@@ -795,7 +795,7 @@ pub_covidcast <- function(
795795
#' @param system character. System name to fetch.
796796
#' @param epiweek [`timeset`]. Epiweeks to fetch.
797797
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
798-
#' @return [`epidata_call`]
798+
#' @return [`json`]
799799
#' @keywords endpoint
800800
#' @export
801801
pub_delphi <- function(system, epiweek, fetch_args = fetch_args_list()) {
@@ -829,7 +829,7 @@ pub_delphi <- function(system, epiweek, fetch_args = fetch_args_list()) {
829829
#' @param locations character. Locations to fetch.
830830
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
831831
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
832-
#' @return [`epidata_call`]
832+
#' @return [`tibble`]
833833
#' @keywords endpoint
834834
#' @export
835835
pub_dengue_nowcast <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -867,7 +867,7 @@ pub_dengue_nowcast <- function(locations, epiweeks, fetch_args = fetch_args_list
867867
#' @param locations character. Locations to fetch.
868868
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
869869
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
870-
#' @return [`epidata_call`]
870+
#' @return [`tibble`]
871871
#' @keywords endpoint
872872
#' @export
873873
pvt_dengue_sensors <- function(auth, names, locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -917,7 +917,7 @@ pvt_dengue_sensors <- function(auth, names, locations, epiweeks, fetch_args = fe
917917
#' @param lag integer. Optionally, the lag of the issues to fetch. If not set,
918918
#' the most recent issue is returned. Mutually exclusive with `issues`.
919919
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
920-
#' @return [`epidata_call`]
920+
#' @return [`tibble`]
921921
#' @keywords endpoint
922922
#' @export
923923
pub_ecdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetch_args = fetch_args_list()) {
@@ -974,7 +974,7 @@ pub_ecdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetc
974974
#' @param lag integer. Optionally, the lag of the issues to fetch. If not set,
975975
#' the most recent issue is returned. Mutually exclusive with `issues`.
976976
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
977-
#' @return [`epidata_call`]
977+
#' @return [`tibble`]
978978
#' @keywords endpoint
979979
#' @export
980980
pub_flusurv <- function(locations, epiweeks, ..., issues = NULL, lag = NULL, fetch_args = fetch_args_list()) {
@@ -1030,7 +1030,7 @@ pub_flusurv <- function(locations, epiweeks, ..., issues = NULL, lag = NULL, fet
10301030
#' @param lag integer. Optionally, the lag of the issues to fetch. If not set,
10311031
#' the most recent issue is returned. Mutually exclusive with `issues`.
10321032
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1033-
#' @return [`epidata_call`]
1033+
#' @return [`tibble`]
10341034
#' @keywords endpoint
10351035
#' @export
10361036
pub_fluview_clinical <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetch_args = fetch_args_list()) {
@@ -1078,7 +1078,7 @@ pub_fluview_clinical <- function(regions, epiweeks, ..., issues = NULL, lag = NU
10781078
#'
10791079
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
10801080
#'
1081-
#' @return [`epidata_call`]
1081+
#' @return [`tibble`]
10821082
#' @keywords endpoint
10831083
#' @export
10841084
pub_fluview_meta <- function(fetch_args = fetch_args_list()) {
@@ -1123,7 +1123,7 @@ pub_fluview_meta <- function(fetch_args = fetch_args_list()) {
11231123
#' @param auth string. Optionally, restricted access key (not the same as API
11241124
#' key).
11251125
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1126-
#' @return [`epidata_call`]
1126+
#' @return [`tibble`]
11271127
#' @keywords endpoint
11281128
#' @export
11291129
pub_fluview <- function(
@@ -1198,7 +1198,7 @@ pub_fluview <- function(
11981198
#' @param epiweeks [`timeset`] Epiweeks to fetch.
11991199
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
12001200
#'
1201-
#' @return [`epidata_call`]
1201+
#' @return [`tibble`]
12021202
#' @keywords endpoint
12031203
#' @export
12041204
pub_gft <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -1235,7 +1235,7 @@ pub_gft <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
12351235
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
12361236
#' @param query string. The query to be fetched.
12371237
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1238-
#' @return [`epidata_call`]
1238+
#' @return [`tibble`]
12391239
#' @keywords endpoint
12401240
#' @export
12411241
pvt_ght <- function(auth, locations, epiweeks, query, fetch_args = fetch_args_list()) {
@@ -1277,7 +1277,7 @@ pvt_ght <- function(auth, locations, epiweeks, query, fetch_args = fetch_args_li
12771277
#' @param lag integer. Optionally, the lag of the issues to fetch. If not set,
12781278
#' the most recent issue is returned. Mutually exclusive with `issues`.
12791279
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1280-
#' @return [`epidata_call`]
1280+
#' @return [`tibble`]
12811281
#' @keywords endpoint
12821282
#' @export
12831283
pub_kcdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetch_args = fetch_args_list()) {
@@ -1320,7 +1320,7 @@ pub_kcdc_ili <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetc
13201320
#' }
13211321
#' @param auth string. Restricted access key (not the same as API key).
13221322
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1323-
#' @return [`epidata_call`]
1323+
#' @return [`json`]
13241324
#' @keywords endpoint
13251325
#' @export
13261326
pvt_meta_norostat <- function(auth, fetch_args = fetch_args_list()) {
@@ -1339,7 +1339,7 @@ pvt_meta_norostat <- function(auth, fetch_args = fetch_args_list()) {
13391339
#'
13401340
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
13411341
#'
1342-
#' @return [`epidata_call`]
1342+
#' @return [`json`]
13431343
#' @keywords endpoint
13441344
#' @export
13451345
pub_meta <- function(fetch_args = fetch_args_list()) {
@@ -1367,7 +1367,7 @@ pub_meta <- function(fetch_args = fetch_args_list()) {
13671367
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
13681368
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
13691369
#'
1370-
#' @return [`epidata_call`]
1370+
#' @return [`tibble`]
13711371
#' @keywords endpoint
13721372
#' @export
13731373
pub_nidss_dengue <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -1406,7 +1406,7 @@ pub_nidss_dengue <- function(locations, epiweeks, fetch_args = fetch_args_list()
14061406
#' @param lag integer. Optionally, the lag of the issues to fetch. If not set,
14071407
#' the most recent issue is returned. Mutually exclusive with `issues`.
14081408
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1409-
#' @return [`epidata_call`]
1409+
#' @return [`tibble`]
14101410
#' @keywords endpoint
14111411
#' @export
14121412
pub_nidss_flu <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetch_args = fetch_args_list()) {
@@ -1458,7 +1458,7 @@ pub_nidss_flu <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fet
14581458
#' @param locations character. Locations to fetch.
14591459
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
14601460
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1461-
#' @return [`epidata_call`]
1461+
#' @return [`tibble`]
14621462
#' @keywords endpoint
14631463
#' @export
14641464
pvt_norostat <- function(auth, locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -1499,7 +1499,7 @@ pvt_norostat <- function(auth, locations, epiweeks, fetch_args = fetch_args_list
14991499
#' @param locations character. Locations to fetch.
15001500
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
15011501
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1502-
#' @return [`epidata_call`]
1502+
#' @return [`tibble`]
15031503
#' @keywords endpoint
15041504
#' @export
15051505
pub_nowcast <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -1535,7 +1535,7 @@ pub_nowcast <- function(locations, epiweeks, fetch_args = fetch_args_list()) {
15351535
#' @param lag integer. Optionally, the lag of the issues to fetch. If not set,
15361536
#' the most recent issue is returned. Mutually exclusive with `issues`.
15371537
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1538-
#' @return [`epidata_call`]
1538+
#' @return [`tibble`]
15391539
#' @keywords endpoint
15401540
#' @export
15411541
pub_paho_dengue <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, fetch_args = fetch_args_list()) {
@@ -1586,7 +1586,7 @@ pub_paho_dengue <- function(regions, epiweeks, ..., issues = NULL, lag = NULL, f
15861586
#' @param locations character. Locations to fetch.
15871587
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
15881588
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1589-
#' @return [`epidata_call`]
1589+
#' @return [`tibble`]
15901590
#' @keywords endpoint
15911591
#' @export
15921592
pvt_quidel <- function(auth, locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -1628,7 +1628,7 @@ pvt_quidel <- function(auth, locations, epiweeks, fetch_args = fetch_args_list()
16281628
#' @param locations character. Locations to fetch.
16291629
#' @param epiweeks [`timeset`]. Epiweeks to fetch.
16301630
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1631-
#' @return [`epidata_call`]
1631+
#' @return [`tibble`]
16321632
#' @keywords endpoint
16331633
#' @export
16341634
pvt_sensors <- function(auth, names, locations, epiweeks, fetch_args = fetch_args_list()) {
@@ -1674,7 +1674,7 @@ pvt_sensors <- function(auth, names, locations, epiweeks, fetch_args = fetch_arg
16741674
#' @param epiweeks [`timeset`]. Epiweeks to fetch. Mutually exclusive with
16751675
#' `dates`.
16761676
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1677-
#' @return [`epidata_call`]
1677+
#' @return [`tibble`]
16781678
#' @keywords endpoint
16791679
#' @export
16801680
pvt_twitter <- function(auth, locations, ..., dates = NULL, epiweeks = NULL, fetch_args = fetch_args_list()) {
@@ -1727,7 +1727,7 @@ pvt_twitter <- function(auth, locations, ..., dates = NULL, epiweeks = NULL, fet
17271727
#' @param language string. Language to fetch.
17281728
#' @param hours integer. Optionally, the hours to fetch.
17291729
#' @param fetch_args [`fetch_args`]. Additional arguments to pass to `fetch()`.
1730-
#' @return [`epidata_call`]
1730+
#' @return [`tibble`]
17311731
#' @keywords endpoint
17321732
#' @export
17331733
pub_wiki <- function(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Note that for the time being, the private endpoints (i.e. those prefixed with
8282
`pvt`) will require a separate key that needs to be passed as an argument.
8383

8484
[mit-image]: https://img.shields.io/badge/License-MIT-yellow.svg
85-
[mit-url]: https://opensource.org/license/mit
85+
[mit-url]: https://opensource.org/license/mit/
8686
[github-actions-image]: https://github.com/cmu-delphi/epidatr/workflows/ci/badge.svg
8787
[github-actions-url]: https://github.com/cmu-delphi/epidatr/actions
8888

man/clear_cache.Rd

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

man/epidatr-package.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.Rd

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

man/pub_covidcast.Rd

Lines changed: 1 addition & 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)