Re: [Rd] raster support in graphics devices

From: hadley wickham <h.wickham_at_gmail.com>
Date: Fri, 04 Dec 2009 09:53:48 -0600

> 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_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 04 Dec 2009 - 16:00:55 GMT

This archive was generated by hypermail 2.2.0 : Fri 04 Dec 2009 - 16:20:57 GMT