Skip to content

Commit bad001a

Browse files
Optionally skip tests requiring 'svglite' (#5198)
1 parent 519bc83 commit bad001a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-ggsave.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test_that("ggsave restores previous graphics device", {
2727
})
2828

2929
test_that("ggsave uses theme background as image background", {
30+
skip_if_not_installed("svglite")
3031
skip_if_not_installed("xml2")
3132

3233
path <- tempfile()
@@ -43,6 +44,7 @@ test_that("ggsave uses theme background as image background", {
4344
})
4445

4546
test_that("ggsave can handle blank background", {
47+
skip_if_not_installed("svglite")
4648
skip_if_not_installed("xml2")
4749

4850
path <- tempfile()

0 commit comments

Comments
 (0)