Skip to content
Prev 343216 / 398513 Next

Making my own graphics device

Hi
On 08/18/14 07:58, Thomas Levine wrote:
That is certainly a good way to get something going quickly at least
(I used it just the other day and had something up and running in under 
an hour, based on the inst/examples/SVG/svgDev.R example)
The "canonical" approach is to look at the source code for one of the 
built-in devices in the R source code and change it to do what you want 
(e.g., src/modules/X11/devX11.c).  The file 
src/include/R_ext/GraphicsDevice.h has comments describing how the 
graphics device should be set up.  See the RSvgDevice package for an 
example of a device implemented in a package.

Paul