I am getting a gzip error while reading a data file R. I am trying to use the approach described here: Reading and writing RData files in Julia .
Here is a minimal example. In R, I run the following script:
var1 <- matrix( runif(9), 3, 3 ) save( var1, file='~/temp/file1.rda')
Then in julia:
using DataFrames x = read_rda("~/temp/file1.rda")
This returns:
ERROR: GZip.GZError(-1,"gzopen failed") in gzopen at /home/squipbar/.julia/v0.4/GZip/src/GZip.jl:250 in gzopen at /home/squipbar/.julia/v0.4/GZip/src/GZip.jl:265 in read_rda at /home/squipbar/.julia/v0.4/DataFrames/src/RDA.jl:418
I do not think that I am doing something dumb. The closest I found to this error online is in Github RDatasets issues, here: https://github.com/johnmyleswhite/RDatasets.jl/issues/32
So maybe this is somehow related to RDatasets? Suggestions are welcome.
source share