[R] Load svg, eps or png into graphics device?
p@u| @end|ng |rom @t@t@@uck|@nd@@c@nz
Sun Jun 21 22:42:01 CEST 2020
Do you mean you want to reduce *system requirements* ? I'm not sure you
have many options. Looking at the plantuml output format options, there
png via 'png', which requires libpng
svg via 'grImport2', which requires 'rsvg', which requires librsvg2
eps via 'grImport', which requires ghostscript
... and a number of other formats that cannot be read directly into R AFAIK.
The only option that does not require dependencies looks like the "txt"
format, which you could read in with readLines(), but I'm not sure you
want an ASCII art version :)
On 20/06/20 2:56 am, Rainer M Krug wrote:
> I have a package, which plots from the plantuml syntax (https://plantuml.com) graphs via a knitr engine, into a file, or into a graphics device (https://github.com/rkrug/plantuml).
> I am using at the moment grImport for the eps import, but would like to cut down on dependencies.
> Is there a way of bringing graphics files (png, sag, eps, …) into a graphics device in R?
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
> Orcid ID: 0000-0002-7490-0066
> Department of Evolutionary Biology and Environmental Studies
> University of Zürich
> Office Y34-J-74
> Winterthurerstrasse 190
> 8075 Zürich
> Office: +41 (0)44 635 47 64
> Cell: +41 (0)78 630 66 57
> email: Rainer.Krug using uzh.ch
> Rainer using krugs.de
> Skype: RMkrug
> PGP: 0x0F52F982
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
64 9 3737599 x85392
paul using stat.auckland.ac.nz
More information about the R-help