Skip to content

Commit 9a92314

Browse files
committed
fix: add missing import of httr in examples.
1 parent 0499d05 commit 9a92314

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Suggests:
5858
rmarkdown,
5959
testthat (>= 3.1.5),
6060
withr,
61+
base64enc,
6162
curl
6263
VignetteBuilder:
6364
knitr

R/covidcast.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ covidcast_epidata <- function(base_url = global_base_url, timeout_seconds = 30)
150150
if (httr::http_type(response) == "text/html" && length(response$content) > 0) {
151151
# grab the error information out of the returned HTML document
152152
msg <- paste(msg, ":", xml2::xml_text(xml2::xml_find_all(
153-
xml2::read_html(content(response, "text")),
153+
xml2::read_html(httr::content(response, "text")),
154154
"//p"
155155
)))
156156
}

R/request.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ join_url <- function(url, endpoint) {
1414
#' "GET", "https://httpbin.org/headers",
1515
#' httr::authenticate("epidata", "fake_key")
1616
#' )
17-
#' content(response)$headers$Authorization == paste0(
17+
#' httr::content(response)$headers$Authorization == paste0(
1818
#' "Basic ",
1919
#' base64enc::base64encode(charToRaw("epidata:fake_key"))
2020
#' )

man/do_request.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)