From hadley at rice.edu  Wed May  2 18:53:44 2012
From: hadley at rice.edu (Hadley Wickham)
Date: Wed, 2 May 2012 11:53:44 -0500
Subject: [Rd] Decompressing raw vectors in memory
In-Reply-To: <20120502164706.GA24386@wald.ucdavis.edu>
References: <CABdHhvHZLaGEcmuqLN-pzd_oGfJt8O_doU9JT8wvHwn=_pMyZw@mail.gmail.com>
	<4FA150E4.3090907@stats.ox.ac.uk>
	<CABdHhvEdSD=yJLDJwM+Cht+uh0aBjpuGDTzZmPyaKKdPDBOjOQ@mail.gmail.com>
	<4FA15DDD.4040607@stats.ox.ac.uk>
	<CABdHhvGYjNavx695yz32NBYw0Er_6oN60KnVXKQU=Vu8F724yA@mail.gmail.com>
	<20120502164706.GA24386@wald.ucdavis.edu>
Message-ID: <CABdHhvH-S++mX_ZD3AQUnDLTTw=z9rXobZ5TQCNG64VuJ1hhuA@mail.gmail.com>

> I understand the desire not to have any dependency on additional
> packages, and I have no desire to engage in any "mine's better" exchanges.
> So write this just for the record.
> The gzunzip() function handle this.

Funnily enough I just discovered that RCurl already handles this: you
just need to set encoding = "gzip".  No extra dependencies, and yours
is better ;)

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] Decompressing raw vectors in memory
Hadley Wickham