mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
* Close #1409: don't supply width/height to the device if they aren't defined * Update news * Update unit tests to reflect that plotPNG()/startPNG() now handles NULL dimensions * Add a note about NULL dimensions on plotPNG() help page * Update news
7 lines
227 B
R
7 lines
227 B
R
test_that("plotPNG()/startPNG() ignores NULL dimensions", {
|
|
f <- plotPNG(function() plot(1), width = NULL, height = NULL)
|
|
on.exit(unlink(f))
|
|
bits <- readBin(f, "raw", file.info(f)$size)
|
|
expect_true(length(bits) > 0)
|
|
})
|