Make sure displaylist is on for recording/replaying plots

This commit is contained in:
Winston Chang
2016-08-30 20:05:28 -05:00
parent ad171d6cbb
commit 7e86e65cce
2 changed files with 6 additions and 0 deletions

View File

@@ -97,6 +97,9 @@ shiny 0.13.2.9005
## Bug fixes
* Fixed #1331: `renderPlot()` now correctly records and replays plots when
`execOnResize=FALSE`. (#1337)
* `updateDateInput()` and `updateDateRangeInput()` can now clear the date
input fields. (#1299, #896, #1315)

View File

@@ -185,6 +185,9 @@ renderPlot <- function(expr, width='auto', height='auto', res=72, ...,
success <-FALSE
tryCatch(
{
# This is necessary to enable displaylist recording
dev.control(displaylist = "enable")
# Actually perform the plotting
result <- withVisible(func())
success <- TRUE