Sage-Bionetworks/rHDF5 — Issue #5: Can't do column-wise expansion
Author: MattNapsAlot
Created: 2012-01-03 21:20:30+00:00
State: open

Attempting to write a row that has more columns that the existing data does not work properly and leads to corruption of the data.
```R
> d <- diag(3)
> HDF5WriteData("foo.h5", "/all.data/dataValues", d, list(forceNewFile=TRUE))
> print(HDF5ReadData("foo.h5", "/all.data/dataValues"))
[,1] [,2] [,3]
[1,] 1 0 0
[2,] 0 1 0
[3,] 0 0 1
> HDF5WriteData("foo.h5", "/all.data/dataValues", c(1,1,1,1), options=list(startindex=3))
> print(HDF5ReadData("foo.h5", "/all.data/dataValues"))
[,1] [,2] [,3]
[1,] 1.000000e+00 0.000000e+00 0.000000e+00
[2,] 0.000000e+00 1.000000e+00 0.000000e+00
[3,] 0.000000e+00 0.000000e+00 1.000000e+00
[4,] 1.000000e+00 1.000000e+00 1.000000e+00
[5,] 1.000000e+00 4.940656e-324 4.446591e-323
[6,] 2.121996e-314 2.151022e-314 0.000000e+00
[7,] 2.152347e-314 0.000000e+00 0.000000e+00
```