Skip to content

Commit 4e8aad0

Browse files
authored
Merge pull request #111 from cmu-delphi/lcb/fetch-readme
docs: note `fetch_*` -> `fetch` breaking change in README.md, bump version
2 parents dd0970b + 045311a commit 4e8aad0

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: epidatr
22
Type: Package
33
Title: Client for Delphi's Epidata API
4-
Version: 0.5.0
4+
Version: 0.6.0
55
Authors@R: as.person(c(
66
"Jacob Bien <[email protected]> [aut]",
77
"Logan Brooks <[email protected]> [aut]",

R/constants.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version <- "0.5.0"
1+
version <- "0.6.0"
22
http_headers <- httr::add_headers("User-Agent" = paste0("epidatr/", version), "Accept-Encoding" = "gzip")
33
global_base_url <- "https://api.delphi.cmu.edu/epidata/"

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ Install latest version using [`remotes`](https://cran.r-project.org/package=remo
1414
remotes::install_github("cmu-delphi/epidatr")
1515
```
1616

17+
Note (2023-05-23): since version 0.6.0, the `fetch_{tbl,classic,df,json,csv}`
18+
functions have been replaced by the `fetch()` function, which almost always
19+
returns a tibble, except when used with a limited number of older endpoints
20+
(such as `delphi()` and `meta()`), where it will output a nested list structure.
21+
If you encounter an error like
22+
```{r}
23+
Error in fetch_tbl(.) : could not find function "fetch_tbl"
24+
```
25+
please update to use `fetch()` instead. If instead you encounter
26+
```{r}
27+
Error in fetch(.) : could not find function "fetch"
28+
```
29+
please update to the newest `epidatr`.
30+
1731
Note (2022-08-02): the package that this installs is being renamed from
1832
`delphi.epidata` to `epidatr`. To migrate, run the installation command above,
1933
followed by `remove.packages("delphi.epidata")`, and adjust all references to

0 commit comments

Comments
 (0)