Debian Codegraph @

tests/testthat/test-plot-png.R

raw
1 test_that("plotPNG()/startPNG() ignores NULL dimensions", {
2 f <- plotPNG(function() plot(1), width = NULL, height = NULL)
3 on.exit(unlink(f))
4 bits <- readBin(f, "raw", file.info(f)$size)
5 expect_gt(length(bits), 0)
6 })