[Rd] inflate zlib compressed data using base R or CRAN package?

Dirk Eddelbuettel edd at debian.org
Thu Nov 28 02:57:00 CET 2013


On 27 November 2013 at 17:30, Murray Stokely wrote:
| I think none of these examples describe a zlib compressed data block inside a
| binary file that the OP asked about, as all of your examples are e.g.
| prepending gzip or zip headers. 

Yes I fear I have no real idea what Greg is/was talking about.

I can however confirm that I regularly read delimited text data from inside
zip files (as shipped by data vendors) without having to unzip them first,
and also regularly access files which are gzip compressed -- including binary
streams from internal capture/conversion.

Also, my RcppCNPy packages deal with that too in the context of NumPy files
and has examples of how to transparently switch between files which are, or
aren't, compressed by gzip.  

Sorry for wasting bandwidth. I was just trying to help.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the R-devel mailing list