file <- tempfile()
x <- array(1:120, dim = 2:5)
# save x to file with name /group/dataset/1
io_write_h5(x, file, '/group/dataset/1', chunk = dim(x))
# load data
y <- io_read_h5(file, '/group/dataset/1')
# read data to memory
y[]
# clean up
unlink(file)
Run the code above in your browser using DataLab