[Rd] Decompressing raw vectors in memory

From: Hadley Wickham <hadley_at_rice.edu>
Date: Wed, 02 May 2012 13:24:21 +0000

Hi all,

I'm struggling to decompress a gzip'd raw vector in memory:

content <- readBin("http://httpbin.org/gzip", "raw", 1000)

memDecompress(content, type = "gzip")
# Error in memDecompress(content, type = "gzip") :
# internal error -3 in memDecompress(2)

I'm reasonably certain that the file is correctly compressed, because if I save it out to a file, I can read the uncompressed data:

tmp <- tempfile()
writeBin(content, tmp)

So that suggests I'm using memDecompress incorrectly. Any hints?



Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

R-devel_at_r-project.org mailing list
Received on Wed 02 May 2012 - 13:27:55 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 May 2012 - 15:50:53 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive