diff --git a/tests/testthat/test-ggsave.R b/tests/testthat/test-ggsave.R index 6513704538..2d21bfcf15 100644 --- a/tests/testthat/test-ggsave.R +++ b/tests/testthat/test-ggsave.R @@ -27,6 +27,7 @@ test_that("ggsave restores previous graphics device", { }) test_that("ggsave uses theme background as image background", { + skip_if_not_installed("svglite") skip_if_not_installed("xml2") path <- tempfile() @@ -43,6 +44,7 @@ test_that("ggsave uses theme background as image background", { }) test_that("ggsave can handle blank background", { + skip_if_not_installed("svglite") skip_if_not_installed("xml2") path <- tempfile()