diff --git a/tests/testthat/test-ggplot-blank.R b/tests/testthat/test-ggplot-blank.R index 24b69d4e8b..c192368e05 100644 --- a/tests/testthat/test-ggplot-blank.R +++ b/tests/testthat/test-ggplot-blank.R @@ -1,5 +1,6 @@ test_that("geom_blank", { + skip_if_not_installed("ggplot2", "3.4.0") qp <- expect_warning(qplot(), "deprecated") l <- ggplotly(qp)$x diff --git a/tests/testthat/test-ggplot-polygons.R b/tests/testthat/test-ggplot-polygons.R index cd618dedbf..82bd1728e9 100644 --- a/tests/testthat/test-ggplot-polygons.R +++ b/tests/testthat/test-ggplot-polygons.R @@ -121,6 +121,7 @@ test_that("geom_polygon(aes(linetype), fill, color)", { }) test_that("geom_polygon(aes(size), fill, colour)", { + skip_if_not_installed("ggplot2", "3.4.0") size_plot <- function() { ggplot(poly.df) + geom_polygon(aes(x, y, size = lab), fill = "orange", colour = "black") +