Skip to content

Commit

Permalink
fix for r-lib/httr#330
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Apr 15, 2016
1 parent efd42b1 commit a23b501
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 34 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Depends:
R (>= 3.1.3)
Imports:
httr,
dplyr
dplyr,
jsonlite
License: MIT
Suggests:
testthat
Expand Down
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2 (4.1.1): do not edit by hand
# Generated by roxygen2: do not edit by hand

export(occurrence)
export(taxa)
import(dplyr)
import(httr)
import(jsonlite)
3 changes: 2 additions & 1 deletion R/occurrence.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ occurrence <- function(
log_request(result)
}
stop_for_status(result)
res <- content(result, simplifyVector=TRUE)
text <- content(result, "text", encoding="UTF-8")
res <- fromJSON(text, simplifyVector=TRUE)

if(!is.null(res$message)) {
lastpage = TRUE
Expand Down
2 changes: 1 addition & 1 deletion R/robis.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#'
#' @docType package
#' @name robis
#' @import dplyr httr
#' @import dplyr httr jsonlite
NULL
3 changes: 2 additions & 1 deletion R/taxa.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ taxa <- function(
log_request(result)
}
stop_for_status(result)
res <- content(result, simplifyVector=TRUE)
text <- content(result, "text", encoding="UTF-8")
res <- fromJSON(text, simplifyVector=TRUE)

if(!is.null(res$message)) {
lastpage = TRUE
Expand Down
14 changes: 1 addition & 13 deletions man/occurrence.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/qc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/robis.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions man/taxa.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a23b501

Please sign in to comment.