Skip to contents

Close access to an HDF5 file

Usage

H5Fclose(h5file)

Arguments

h5file

H5IdComponent representing an HDF5 file ID. Typically created via H5Fcreate() or H5Fopen().

Examples

h5_file <- withr::local_tempfile(fileext = ".h5")
H5Fcreate(h5_file)

fid <- H5Fopen(h5_file)
H5Fget_filesize(fid)
#> [1] 2048
H5Fclose(fid)