From h.wickham at gmail.com  Fri Dec  4 16:53:48 2009
From: h.wickham at gmail.com (hadley wickham)
Date: Fri, 4 Dec 2009 09:53:48 -0600
Subject: [Rd] raster support in graphics devices
In-Reply-To: <971536df0912040717i4ab73a0aga0be2347d7f7d225@mail.gmail.com>
References: <4B146EC6.2000502@auckland.ac.nz>
	<971536df0912040528w4226179el7f833c736941406d@mail.gmail.com> 
	<971536df0912040717i4ab73a0aga0be2347d7f7d225@mail.gmail.com>
Message-ID: <f8e6ff050912040753p35165d28ge8168c02ef728d3c@mail.gmail.com>

> 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/



[Rd] raster support in graphics devices
hadley wickham