Skip to content
Browse files

Don't open on-screen windows in tests

  • Loading branch information...
1 parent 74f006b commit 6fde6291e6fb9437b4a64504f7299bfb394a62e5 @wch wch committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 inst/tests/test-aes-setting.r
View
2 inst/tests/test-aes-setting.r
@@ -5,7 +5,9 @@ test_that("Aesthetic parameters must match length of data", {
p <- ggplot(df, aes(x, y))
set_colours <- function(colours) {
+ pdf(file=NULL)
print(p + geom_point(colour = colours))
+ dev.off()
}
set_colours("red")

0 comments on commit 6fde629

Please sign in to comment.
Something went wrong with that request. Please try again.