nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
377 stars 19 forks source link

ggplot2 issue when deleting plots #50

Closed nx10 closed 3 years ago

nx10 commented 3 years ago

If the last plot is removed and the second to last plot is a ggplot2 plot it will not be re-rendered correctly after resizing (that plot will be blank).

nx10 commented 3 years ago

This seems to be a bug in R 4.0.3:

Bug fix for replayPlot(); this was turning off graphics engine display list recording if a recorded plot was replayed in the same session. The impact of the bug became visible if resize the device after replay OR if attempted another savePlot() after replay (empty display list means empty screen on resize or empty saved plot).

See: https://cran.r-project.org/doc/manuals/r-devel/NEWS.html

Works as expected in R-devel.