Skip to content

Commit

Permalink
surpress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed Aug 21, 2023
1 parent ea21fca commit f5fee5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: googleway
Type: Package
Title: Accesses Google Maps APIs to Retrieve Data and Plot Maps
Version: 2.7.7
Date: 2023-04-15
Version: 2.7.8
Date: 2023-08-22
Authors@R: c(
person("David", "Cooley", ,"[email protected]", role = c("aut", "cre")),
person("Paulo", "Barcelos", role = "ctb", comment = "Author of c++ decode_pl"),
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Version 2.7.8

* supressed `readLines()` warning

## Version 2.7.7

Expand Down
4 changes: 2 additions & 2 deletions R/googleway-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ downloadData <- function(map_url, simplify, curl_proxy = NULL){
con <- curl::curl(map_url)
}

tryCatch({
out <- readLines(con)
out <- tryCatch({
suppressWarnings(readLines(con))
},
error = function(cond){
stop("There was an error downloading results. Please manually check the following URL is valid by entering it into a browswer. If valid, please file a bug report citing this URL (note: your API key has been removed, so you will need to add that back in) \n\n", gsub("key=.*","",map_url), "key=", sep = "")
Expand Down

0 comments on commit f5fee5f

Please sign in to comment.