Skip to content

Commit 269ca31

Browse files
committed
conditionally skip that that require MASS
1 parent 0b15165 commit 269ca31

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/testthat/test-stat-density2d.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_not_installed("MASS")
2+
13
test_that("uses scale limits, not data limits", {
24
base <- ggplot(mtcars, aes(wt, mpg)) +
35
stat_density_2d() +

tests/testthat/test-stat-ellipsis.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_not_installed("MASS")
2+
13
test_that("stat_ellipsis returns correct data format", {
24
n_seg <- 40
35
d <- data_frame(x = c(1, 1, 4, 4, 4, 3, 3, 1), y = c(1:4, 1:4), id = rep(1:2, each = 4))

0 commit comments

Comments
 (0)