Use characters rather than 'versions' to store version information
authorPaul Hoffman <hoff0792@umn.edu>
Tue, 14 Nov 2017 15:24:37 +0000 (10:24 -0500)
committerPaul Hoffman <hoff0792@umn.edu>
Tue, 14 Nov 2017 15:24:37 +0000 (10:24 -0500)
R/loom.R

index 943bd91f8a9cbd353dd494e18de2cd43a1048aa0..b24b70a479e9fa6d4e43bceb7bd31d357a9250c7 100644 (file)
--- a/R/loom.R
+++ b/R/loom.R
@@ -111,7 +111,7 @@ loom <- R6Class(
           error = function(e) {
             if (mode != 'r') {
               version <- packageVersion(pkg = 'loomR')
-              h5attr(x = self, which = 'version') <- version
+              h5attr(x = self, which = 'version') <- as.character(x = version)
             } else {
               version <- NA_character_
             }