rhdf5 error writing matrix in hdf5 file
1
0
Entering edit mode
@wolfgangbiener-16936
Last seen 3.2 years ago

Hello,

Below is the code leading to the error. It is basically copied from the example:

rm(list = ls())

library(rhdf5)

setwd('~/prg/git/test')

h5createFile("myhdf5file2.h5")
h5createGroup("myhdf5file2.h5","foo")
A = matrix(1:10,nr=5,nc=2)
h5write(A, file = "myhdf5file2.h5",name = "foo/A")

Error in on.exit(H5Sclose(h5spaceMem), add = TRUE, after = FALSE) :
  unused argument (after = FALSE)

rhdf5 • 364 views
ADD COMMENT
0
Entering edit mode

Can you update your post with the output of the command sessionInfo() so we can see the versions of R and rhdf5 you're using?

ADD REPLY
0
Entering edit mode
Mike Smith ★ 5.2k
@mike-smith
Last seen 12 hours ago
EMBL Heidelberg / de.NBI

The argument after was only added to on.exit() in R 3.5.0. Upgrading to this version of the R or newer should solve the issue.

ADD COMMENT

Login before adding your answer.

Traffic: 288 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6