Dear All,

is there a way to plot to a connection? I mean, I would like to do
something like

> tc <- textConnection("foo", "w")
> png(tc)
> plot(...)
> close(tc)

According to the documentation of the Cairo package, this should work
with CairoPNG() (among others), but all I get is

> tc <- textConnection("foo", "w")
> CairoPNG(file=tc)
Error in Cairo(width, height, type = "png", file = filename, pointsize
= pointsize,  :
  file must be a filename. to support writing to a connection,
recompile R and Cairo with the R Connection Patch.

Anybody knows what is the "R Connection Patch"?

Btw. is there any particular reason that the png(), jpeg(), etc.
devices do not work with connections?

Thanks,
Gabor

-- 
Gabor Csardi <gabor.csa...@unil.ch>     UNIL DGM

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to