Skip to content

Commit 1bb20d3

Browse files
skip tests requiring suggested hexbin (#5041)
* skip tests requiring suggested hexbin * also in geom-hex
1 parent 19830c5 commit 1bb20d3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/testthat/test-geom-hex.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_not_installed("hexbin")
2+
13
test_that("density and value summaries are available", {
24
df <- data_frame(x = c(1, 1, 1, 2), y = c(1, 1, 1, 2))
35
base <- ggplot(df, aes(x, y)) +

tests/testthat/test-stat-hex.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
skip_if_not_installed("hexbin")
12
test_that("can use length 1 binwidth", {
23
df <- data_frame(x = c(1, 1, 2), y = c(1, 1, 2))
34
p <- ggplot(df, aes(x, y)) + stat_binhex(binwidth = 1)

0 commit comments

Comments
 (0)