Re: [R] memDecompress and zlib compressed base64 encoded string

2010-01-15 Thread Johannes Graumann
Prof Brian Ripley wrote: I have zlib compressed strings (example is attached) What is that file? Not gzip compression: gannet% file compressed.txt compressed.txt: ASCII text, with very long lines since gzip uses a magic header that 'file' knows about. And even if the header was

[R] memDecompress and zlib compressed base64 encoded string

2010-01-14 Thread Johannes Graumann
Hi, I have zlib compressed strings (example is attached) and would like to decompress them using memDecompress ... I try this: connection - file(compressed.txt,r) compressed - readLines(connection) memDecompress(as.raw(compressed),type=g) Error in memDecompress(as.raw(compressed), type = g)

Re: [R] memDecompress and zlib compressed base64 encoded string

2010-01-14 Thread Prof Brian Ripley
On Thu, 14 Jan 2010, Johannes Graumann wrote: Hi, I have zlib compressed strings (example is attached) What is that file? Not gzip compression: gannet% file compressed.txt compressed.txt: ASCII text, with very long lines since gzip uses a magic header that 'file' knows about. And even if