> Just to explain a bit more I am thinking about something like this: > > con <- graphicsConnection() # I've just made this up > png(con) > plot(1:10) > dev.off() > raw.img <- readBin(con, "raw", size = 1, n = 100000000)
It seems to me what you actually want is for graphics devices to support connections: rc <- rawConnection("raw.img", "w") png(rc) plot(1:10) dev.off() close(rc) Hadley -- http://had.co.nz/ ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel