Retrieves the name of the attribute specified by an HDF5 attribute object.
Arguments
- h5attribute
An object of class H5IdComponent representing an attribute. Normally created by
H5Aopen()or similar.
Examples
h5File <- tempfile(fileext = ".h5")
fid <- H5Fcreate(h5File)
sid <- H5Screate_simple(1)
aid <- H5Acreate(fid, "some_attribute", "H5T_NATIVE_INT", sid)
H5Aget_name(aid)
#> [1] "some_attribute"
H5Aclose(aid)
H5Sclose(sid)
H5Fclose(fid)
file.remove(h5File)
#> [1] TRUE