h5closeAll: Close all open HDF5 handles

Description Usage Author(s) Examples

View source: R/H5.R

Description

Occasionally references to HDF5 files, groups, datasets etc can be created and not closed correctly. This function identifies all open handles and closes them. It replaces the functionality previously supplied by H5close.

Usage

1

Author(s)

Mike Smith

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## create an empty file and then re-open it
h5createFile("ex_h5closeAll.h5")
H5Fopen("ex_h5closeAll.h5")

## list all open identifiers
h5listIdentifier()

## close all open identifiers and verify
h5closeAll()
h5listIdentifier()

rhdf5 documentation built on Nov. 8, 2020, 6:56 p.m.