Skip to content

Commit a1ab6fb

Browse files
authored
Merge pull request #214 from cmu-delphi/ndefries/documentation1
Simple documentation fixes
2 parents 83e986b + 6820111 commit a1ab6fb

File tree

6 files changed

+22
-21
lines changed

6 files changed

+22
-21
lines changed

R/covidcast.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ print.covidcast_data_source <- function(x, ...) {
127127
#' ```
128128
#'
129129
#' These objects can be used directly to fetch data, without requiring us to use
130-
#' the `covidcast()` function. Simply use the `$call` attribute of the object:
130+
#' the `pub_covidcast()` function. Simply use the `$call` attribute of the object:
131131
#'
132132
#' ```{r}
133133
#' epidata$signals$`fb-survey:smoothed_cli`$call("state", "pa",

R/endpoints.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,11 @@ pub_covidcast <- function(
717717
missing(signals) ||
718718
missing(time_type) ||
719719
missing(geo_type) ||
720-
missing(time_values) || missing(geo_values)
720+
missing(time_values) ||
721+
missing(geo_values)
721722
) {
722723
stop(
723-
"`source`, `signals`, `time_type`, `geo_type`, `time_values`, and `geo_value` are all required"
724+
"`source`, `signals`, `time_type`, `geo_type`, `time_values`, and `geo_values` are all required"
724725
)
725726
}
726727

R/epidatacall.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#' `epidata_call` objects are generated internally by endpoint functions like
77
#' [`pub_covidcast`]; by default, they are piped directly into the `fetch`
88
#' function to fetch and format the data. For most endpoints this will return
9-
#' a tibble, but a few non-COVIDCAST endpoints only support will return a
10-
#' JSON-like list instead.
9+
#' a tibble, but a few non-COVIDCAST endpoints will return a JSON-like list
10+
#' instead.
1111
#'
1212
#' @details
1313
#' `create_epidata_call` is the constructor for `epidata_call` objects, but you

_pkgdown.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,32 @@ home:
3333
href: https://cmu-delphi.github.io/epidatasets/
3434

3535
reference:
36+
- title: Data source and signal discovery
37+
desc: Quickly explore endpoints, and API signal and source names
38+
- contents:
39+
- avail_endpoints
40+
- covidcast_epidata
41+
- title: Make API requests
42+
desc: Query Delphi Epidata endpoints
43+
- contents:
44+
- epidata_call
45+
- fetch_args_list
46+
- has_keyword("endpoint")
47+
- -starts_with("pvt_")
3648
- title: Configuration and utilities
3749
desc: Set API keys and handle API data types
3850
- contents:
3951
- get_api_key
40-
- avail_endpoints
4152
- epirange
4253
- timeset
43-
- title: Control Caching behavior
54+
- title: Control caching behavior
4455
desc: Configure an optional persistent cache
4556
- contents:
4657
- set_cache
4758
- clear_cache
4859
- disable_cache
4960
- cache_info
50-
- title: Make API requests
51-
desc: Query Delphi Epidata endpoints
52-
- contents:
53-
- epidata_call
54-
- fetch_args_list
55-
- has_keyword("endpoint")
56-
- -starts_with("pvt_")
5761
- title: Make requests to private API endpoints
5862
desc: These endpoints require additional authorization to use
5963
- contents:
6064
- starts_with("pvt_")
61-
- title: Autocomplete helpers
62-
desc: Objects that can autocomplete API signals names for faster exploration
63-
- contents:
64-
- covidcast_epidata

man/covidcast_epidata.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epidata_call.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)