ob-R.el: allow use of alternative graphics devices
commit4be6832fdff697af649acc10fafd688e8a19a35a
authorAaron Ecay <aaronecay@gmail.com>
Mon, 22 Apr 2013 03:28:26 +0000 (21 23:28 -0400)
committerAaron Ecay <aaronecay@gmail.com>
Mon, 22 Apr 2013 03:28:26 +0000 (21 23:28 -0400)
treec611e144e26e67af1db5e7385ae13c20ca47c2e8
parente6776ce711a1653fcfeae3da75d129c929b53a0e
ob-R.el: allow use of alternative graphics devices

* lisp/ob-R.el (org-babel-R-graphics-devices): New defvar.
(org-babel-R-construct-graphics-device-call): Use it instead of a
hard-coded list of graphics devices.

The `org-babel-R-graphics-devices' variable now holds the association
between graphics file types and R functions.  This allows users by
modifying this alist to choose to use e.g. the Cairo* functions from the
R package “Cairo” or one of several alternative devices for SVG
output (SVGAnnotation, RSVGTipsDevice).
lisp/ob-R.el