I’m using JRI to generate ggplot2 plots from Java. Currently I have to write plots to disk. How do I do this without going through files, i.e. just rendering the plots in memory?
I tried using the Cairo package to plot to a textConnection, but that doesn’t work without the “R Connections Patch,” which after some Googling turns out to be ancient history.
Mostly from https://stat.ethz.ch/pipermail/r-devel/2010-August/058253.html.
[Update: JRI can handle raws, you just need to use the REngine abstractions and not the JRI ones.]