Skip to contents

Deletes an attribute from an object.

Usage

h5_delete_attr(file, name, attribute)

Arguments

file

Path to the HDF5 file.

name

The path to the object (dataset or group).

attribute

The name of the attribute to delete.

Value

Invisibly returns NULL. This function is called for its side effects.

See also

Examples

file <- tempfile(fileext = ".h5")
h5_write(file, "data", 1)
h5_write_attr(file, "data", "attr1", I("some info"))
print(h5_ls_attr(file, "data")) # "attr1"
#> [1] "attr1"

h5_delete_attr(file, "data", "attr1")
print(h5_ls_attr(file, "data")) # character(0)
#> character(0)
unlink(file)