Skip to content

Commit

Permalink
change method to httr for listing factsheet info, bypassing security …
Browse files Browse the repository at this point in the history
…issue
  • Loading branch information
eblondel committed Nov 17, 2019
1 parent 4aa3461 commit b511da9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Package: RFirmsGeo
Version: 0.2-3
Date: 2019-10-28
Date: 2019-11-17
Title: Tools for georeferencing FIRMS stocks and fisheries
Author: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Maintainer: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Depends:
R (>= 2.15)
Imports:
methods, sf, sp, rgeos, maptools, ows4R, RFigisGeo, cleangeo, RCurl, XML, geometa
methods, sf, sp, rgeos, maptools, ows4R, RFigisGeo, cleangeo, RCurl, XML, geometa, httr
Suggests:
parallel, testthat
Description:
Expand Down
2 changes: 1 addition & 1 deletion R/RFirmsGeo.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' Package: \tab RFirmsGeo\cr
#' Type: \tab Package\cr
#' Version: \tab 0.2-3\cr
#' Date: \tab 2019-10-28\cr
#' Date: \tab 2019-11-17\cr
#' License: \tab GPL(>=2.0)\cr
#' LazyLoad: \tab yes\cr
#' }
Expand Down
2 changes: 1 addition & 1 deletion R/fetchFactsheetInfo.R
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ fetchFactsheetReferences <- function(host, domain, verbose = TRUE){
domainUrl <- sprintf("%s/figis/monikerj/%s", host, domainName)

logger.info(paste0("GET ", domainUrl))
reqText <- getURL(domainUrl)
reqText <- httr::content(httr::GET(domainUrl),"text")
domainXml <- xmlParse(reqText)
xmlURIList <- sapply(getNodeSet(domainXml, "//arrayitem"), xmlGetAttr, "xmlURI")
xmlURIList <- xmlURIList[!sapply(xmlURIList, is.null)]
Expand Down
2 changes: 1 addition & 1 deletion man/RFirmsGeo.Rd

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

0 comments on commit b511da9

Please sign in to comment.