Skip to content

Commit

Permalink
Revert no longer needed change
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jun 14, 2024
1 parent e5f28a8 commit d4c4378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-graphics.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ test_that("existing plots will not leak into evaluate()", {
dev.control('enable')
d <- dev.cur()
plot(1, 1)
ev <- evaluate(c('pdf(NULL)', 'dev.off()', 'plot.new()', 'plot(1:10, 1:10)'))
ev <- evaluate(c('dev.new()', 'dev.off()', 'plot.new()', 'plot(1:10, 1:10)'))
dev.off(d)
expect_equal(tail(classes(ev), 6), c('source', 'character', 'recordedplot')[c(1, 2, 1, 3, 1, 3)])
})

0 comments on commit d4c4378

Please sign in to comment.