Skip to content

Commit 5767e4e

Browse files
authored
skip tests (#5744)
1 parent 5b08ed8 commit 5767e4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-coord_sf.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ test_that("sf_transform_xy() works", {
301301
})
302302

303303
test_that("coord_sf() uses the guide system", {
304+
skip_if_not_installed("sf")
304305
polygon <- sf::st_sfc(
305306
sf::st_polygon(list(matrix(c(-80, -76, -76, -80, -80, 35, 35, 40, 40, 35), ncol = 2))),
306307
crs = 4326 # basic long-lat crs
@@ -324,6 +325,7 @@ test_that("coord_sf() uses the guide system", {
324325
})
325326

326327
test_that("coord_sf() throws error when limits are badly specified", {
328+
skip_if_not_installed("sf")
327329
# throws error when limit is a Scale object instead of vector
328330
expect_snapshot_error(ggplot() + coord_sf(xlim(1,1)))
329331

0 commit comments

Comments
 (0)