Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace httr::GET() with httr::RETRY() #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ importFrom(grid,rasterGrob)
importFrom(grid,seekViewport)
importFrom(grid,upViewport)
importFrom(grid,viewport)
importFrom(httr,GET)
importFrom(httr,RETRY)
importFrom(httr,http_status)
importFrom(httr,stop_for_status)
importFrom(httr,warn_for_status)
Expand Down
2 changes: 1 addition & 1 deletion R/geocode.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ geocode <- function (
if (showing_key()) message("Source : ", url) else message("Source : ", scrub_key(url))

# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)

# deal with bad responses
if (response$status_code != 200L) {
Expand Down
2 changes: 1 addition & 1 deletion R/get_googlemap.R
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ get_googlemap <- function(
if (showing_key()) message("Source : ", url) else message("Source : ", scrub_key(url))

# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)

# deal with bad responses
if (response$status_code != 200L) {
Expand Down
2 changes: 1 addition & 1 deletion R/get_stamenmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ get_stamenmap_tile <- function(maptype, zoom, x, y, color, force = FALSE, messag


# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)


# deal with bad responses
Expand Down
2 changes: 1 addition & 1 deletion R/ggmap-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @importFrom dplyr bind_cols filter bind_rows mutate group_by ungroup select
#' right_join
#' @importFrom glue glue
#' @importFrom httr GET http_status warn_for_status stop_for_status
#' @importFrom httr RETRY http_status warn_for_status stop_for_status
#' @importFrom tibble tibble as_tibble
#' @importFrom stringr str_to_title str_c str_detect str_c str_replace_all
#' str_sub str_trim str_pad str_split str_trunc str_detect str_replace
Expand Down
2 changes: 1 addition & 1 deletion R/mapdist.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ mapdist <- function (
if (showing_key()) message("Source : ", url) else message("Source : ", scrub_key(url))

# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)

# deal with bad responses
if (response$status_code != 200L) {
Expand Down
2 changes: 1 addition & 1 deletion R/revgeocode.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ revgeocode <- function (
if (showing_key()) message("Source : ", url) else message("Source : ", scrub_key(url))

# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)

# deal with bad responses
if (response$status_code != 200L) {
Expand Down
2 changes: 1 addition & 1 deletion R/route.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ route <- function (


# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)


# deal with bad responses
Expand Down
2 changes: 1 addition & 1 deletion R/trek.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ trek <- function (


# query server
response <- httr::GET(url)
response <- httr::RETRY(verb = "GET", url = url)


# deal with bad responses
Expand Down