R Graphics devices are somewhat sparsely documented:
https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Graphics-Devices
graphics.h GraphicsDevice.h
OmegaHat had some docs as well: RGraphicsDevice
It's somewhat helpful to look at a more modern implementation (eg with Rcpp): svglite
Removing device for now to get early testing.
Rstudio has a dummy driver also:
mode(1) is called on device on each drawing op - can shim that onto a png device.
see mode.c for new mode function, and shim for adding it to existing png device. State is being saved in an unused bit.
By registering a Task Callback, we can plot if needed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.