☰
Debian Codegraph
@
1.13.0+dfsg-1
/
/
tests
/
testthat
/
test-plot-png.R
☽
☼
tests/testthat/test-plot-png.R
code
plain
raw
MIT
2013-2025 Posit Software, PBC; Joe Cheng, JJ Allaire, Yihui Xie, Jonathan McPherson,; RStudio, jQuery Foundation, jQuery contributors,; R Core Team
debian/copyright
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
})