Skip to content

Commit

Permalink
Fix R CMD check hard (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 authored Sep 5, 2024
1 parent c6d6e16 commit 57a2195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-autoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ test_that("autoplot is stable", {
p <- autoplot(ames_block$splits[[1]])
vdiffr::expect_doppelganger("block split plots", p)

skip_if_not_installed("curl")
skip_if_offline()
sf::sf_proj_network(enable = TRUE)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-buffer.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ chosen_points <- sf::st_as_sf(
)

test_that("buffering selects the expected points", {
skip_if_not_installed("curl")
skip_if_offline()
sf::sf_proj_network(enable = TRUE)

Expand Down Expand Up @@ -200,6 +201,7 @@ ames_sf <- sf::st_as_sf(

test_that("using buffers", {
skip_if_not(sf::sf_use_s2())
skip_if_not_installed("curl")
skip_if_offline()
sf::sf_proj_network(enable = TRUE)

Expand Down Expand Up @@ -285,6 +287,7 @@ test_that("using buffers", {

test_that("buffers respect units", {
skip_if_not(sf::sf_use_s2())
skip_if_not_installed("curl")
skip_if_offline()
sf::sf_proj_network(enable = TRUE)

Expand Down

0 comments on commit 57a2195

Please sign in to comment.