Closed LTLA closed 5 years ago
Thanks for the report. This should be fixed in version 2.27.2
> h5File <- tempfile(pattern = "ex_read", fileext = ".h5")
> h5createFile(h5File)
> h5write(obj = character(0), file = h5File, name = "char")
> h5read(file = h5File, name = "char")
character(0)
Also fixed for integer(0)
and double(0)
but not other types yet.
Thanks @grimbough, works like a charm.
The following code emits an unnecessary message (it says "Error", but it still actually returns):
In addition, the return value is
NULL
rather than the correctcharacter(0)
.The message disappears when
h5write
is given a non-empty vector.Session information
``` R Under development (unstable) (2018-11-02 r75535) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.5 LTS Matrix products: default BLAS: /home/cri.camres.org/lun01/Software/R/trunk/lib/libRblas.so LAPACK: /home/cri.camres.org/lun01/Software/R/trunk/lib/libRlapack.so locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rhdf5_2.27.0 loaded via a namespace (and not attached): [1] compiler_3.6.0 Rhdf5lib_1.5.0 ```