From 43b66ca2ea329e048c51f4ec57cb3985408c6268 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 30 Apr 2025 10:22:28 -0700 Subject: [PATCH] Optionally skip test requiring maptools --- tests/testthat/test-coord-map.R | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testthat/test-coord-map.R b/tests/testthat/test-coord-map.R index cc4a1b0f3a..9a8c9dc0b1 100644 --- a/tests/testthat/test-coord-map.R +++ b/tests/testthat/test-coord-map.R @@ -52,6 +52,7 @@ test_that("coord map throws error when limits are badly specified", { }) test_that("coord_map throws informative warning about guides", { + skip_if_not_installed("mapproj") expect_snapshot_warning( ggplot_build(ggplot() + coord_map() + guides(x = guide_axis())) )