On Thursday, January 22, 2015 04:48:13 PM Pavel wrote:
> Thanks Tim for responding. I tried with `JLD.jldopen` instead. Now all the
> columns are saved including boolean without conversion to integer, as
> expected. However R session consistently crashes when trying to even look
> at the file structure with `rhdf5::h5ls("trydf.h5")`. Not sure if this is
> rhdf5 R-package issue or not, but something goes wrong when JLD annotations
> are present.
From the Bioconductor website it appears that rhdf5 aims to be a generic HDF5
interface. So if it's crashing on a *.jld file---which is an HDF5 file---then it
indicates some limitation of rhdf5.
> On a more conceptual level, are R and Julia DataFrame structures too
> different to manage read/write without reassembling from separate columns?
Can't answer that, because I don't know R. Maybe someone else can. If you try
running the jld_dataframe.jl test in HDF5.jl and inspect the results with
h5dump, you'll see that each column is already split out for you, if you know
where to look. (Start with the "df2" data set and follow the references.)
Best,
--Tim