Skip to content

Commit

Permalink
drop RCurl, closes #59
Browse files Browse the repository at this point in the history
  • Loading branch information
jsta committed May 24, 2019
1 parent feb4a1d commit 7afdf4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Suggests:
rgeos,
testthat,
covr,
RCurl
crul
VignetteBuilder: knitr
SystemRequirements: 7-zip command line tool (7z)
Language: en-US
14 changes: 9 additions & 5 deletions tests/testthat/test-get.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ test_that("nhd_plus_get fails well", {
"100 is not a valid vpu")
})

#' @importFrom RCurl url.exists
#' @importFrom crul ok
#' @importFrom fauxpas http200

test_that("remote urls are constructed correctly", {
skip_on_cran()
skip_on_travis()

expect_true(
RCurl::url.exists(
nhdR:::get_plus_remotepath(4, component = "NHDSnapshot"))
crul::ok(
nhdR:::get_plus_remotepath(4, component = "NHDSnapshot")
)
)

expect_true(
RCurl::url.exists(
nhdR:::get_plus_remotepath("National", component = "V1_To_V2_Crosswalk"))
crul::ok(
nhdR:::get_plus_remotepath("National", component = "V1_To_V2_Crosswalk"),
status = 200L)
)


Expand Down

0 comments on commit 7afdf4b

Please sign in to comment.