D1

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

D2

Removing device for now to get early testing.

Rstudio has a dummy driver also:

RShadowPNGGraphicsHandler.cpp

D3

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.

D3.2

By registering a Task Callback, we can plot if needed.



nfultz/osc1337 documentation built on March 19, 2020, 4:57 p.m.