Skip to content

Commit

Permalink
Don't open on-screen windows in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Jun 27, 2012
1 parent 74f006b commit 6fde629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inst/tests/test-aes-setting.r
Expand Up @@ -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")
Expand Down

0 comments on commit 6fde629

Please sign in to comment.