Skip to content
Prev 53000 / 63424 Next

Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R

A quick follow-up: I just used cairo_pdf() as the recording device,
and it crashes R as well, so it is probably not relevant to pdf() but
an issue specific to cairo_pdf().

cairo_pdf()
dev.control('enable')

library("grid")
plot(1)
grid.text("A")

res = recordPlot()
dev.off()

cairo_pdf()
replayPlot(res)
dev.off()


Regards,
Yihui
--
https://yihui.name
On Mon, Feb 20, 2017 at 10:24 AM, Yihui Xie <xie at yihui.name> wrote: