Did you ever manage to solve this problem, Jamie?
Ben
On Friday, 2 May 2014 19:50:27 UTC+1, Jamie Olson wrote:>
> I would like to encode/decode some text with deflate/gzip, but I'm
> having trouble.
>
> Decoding values from a rawConnection is fairly straightforward, but
> I'm having trouble encoding values and then retrieving them.
>
> > gz_out <- gzcon(raw_out <-
rawConnection(raw(0),open="wb"))
> > writeLines("test",con=gz_out)
> > flush(gz_out)
> > rawConnectionValue(raw_out)
> Error: cannot allocate vector of size 131069.2 Gb
> > raw_out <- rawConnection(raw(0),open="wb")
> > writeLines("test",con=raw_out)
> > rawConnectionValue(raw_out)
> [1] 74 65 73 74 0a
>
>
> Has anyone had success doing this?
>
> --Jamie
>
> ______________________________________________
> R-h...@r-project.org <javascript:> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>