[Rd] raster support in graphics devices
hadley wickham
h.wickham at gmail.com
Fri Dec 4 16:53:48 CET 2009
> 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/
More information about the R-devel
mailing list