-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty strings fail? #60
Comments
Thanks for the report, I'll look into it. |
Thanks again, this should be patched in version 2.33.4. It didn't only affect writing lists, but any character vector where the contents were all the empty string. I'll also patch the release version on Bioconductor since this is a bug. library(rhdf5)
filepath = tempfile(fileext = ".h5")
rhdf5::h5write("", file = filepath, name = "X")
h5read(filepath, "X")
#> [1] ""
rhdf5::h5write(list(empty_char = ""), file = filepath, name = "Y")
h5read(filepath, "Y")
#> $empty_char
#> [1] "" Let me know if you run into more issues. |
Was this patched on BioC release? Still seeing the same bug. |
Sorry, I should have left the issue open. Thank for reminding me, I wanted to wait a few day to make sure nothing downstream broke in devel before pushing this. It is now in rhdf5 v 2.32.1, which should propagate in the next day. Out of interest, what's the usecase for creating vectors with only empty strings? |
Empty string gives bad value in a a list. This only started happening with new Bioc version.
Created on 2020-05-18 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: