Skip to content

Commit

Permalink
#333 fix to catch_err() internal fxn for occ_download
Browse files Browse the repository at this point in the history
was accidentally using httr function, swapped to use crul equivalent R6 method
bump dev version
  • Loading branch information
sckott committed Dec 3, 2018
1 parent f2924ce commit 9325a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description: A programmatic interface to the Web Service methods
retrieving information on data providers, getting species occurrence
records, getting counts of occurrence records, and using the 'GBIF'
tile map service to make 'rasters' summarizing huge amounts of data.
Version: 1.1.0.9100
Version: 1.1.0.9111
License: MIT + file LICENSE
Authors@R: c(
person("Scott", "Chamberlain", role = c("aut", "cre"),
Expand Down Expand Up @@ -50,7 +50,7 @@ Suggests:
png,
raster,
vcr
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1
X-schema.org-applicationCategory: Biodiversity
X-schema.org-keywords: GBIF, specimens, API, web-services, occurrences, species, taxonomy
X-schema.org-isPartOf: https://ropensci.org
3 changes: 2 additions & 1 deletion R/occ_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ catch_err <- function(x) {
if (length(x$content) > 0) {
x$parse("UTF-8")
} else {
x$http_status()$message
sthp <- x$status_http()
sprintf("%s - %s", sthp$status_code, sthp$message)
}
}

Expand Down

0 comments on commit 9325a21

Please sign in to comment.