Skip to content

Commit 57a2195

Browse files
Fix R CMD check hard (#162)
1 parent c6d6e16 commit 57a2195

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/testthat/test-autoplot.R

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ test_that("autoplot is stable", {
2929
p <- autoplot(ames_block$splits[[1]])
3030
vdiffr::expect_doppelganger("block split plots", p)
3131

32+
skip_if_not_installed("curl")
3233
skip_if_offline()
3334
sf::sf_proj_network(enable = TRUE)
3435

tests/testthat/test-buffer.R

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ chosen_points <- sf::st_as_sf(
66
)
77

88
test_that("buffering selects the expected points", {
9+
skip_if_not_installed("curl")
910
skip_if_offline()
1011
sf::sf_proj_network(enable = TRUE)
1112

@@ -200,6 +201,7 @@ ames_sf <- sf::st_as_sf(
200201

201202
test_that("using buffers", {
202203
skip_if_not(sf::sf_use_s2())
204+
skip_if_not_installed("curl")
203205
skip_if_offline()
204206
sf::sf_proj_network(enable = TRUE)
205207

@@ -285,6 +287,7 @@ test_that("using buffers", {
285287

286288
test_that("buffers respect units", {
287289
skip_if_not(sf::sf_use_s2())
290+
skip_if_not_installed("curl")
288291
skip_if_offline()
289292
sf::sf_proj_network(enable = TRUE)
290293

0 commit comments

Comments
 (0)