R function to create an empty HDF5 file.

h5createFile(file)

Arguments

file

The filename of the HDF5 file.

Value

Returns (invisibly) TRUE is file was created successfully and FALSE otherwise.

Details

Creates an empty HDF5 file.

Author

Bernd Fischer

Examples


h5File <- tempfile(pattern = "ex_createFile.h5")

h5createFile(h5File)

# create groups
h5createGroup(h5File, "foo")
h5createGroup(h5File, "foo/foobaa")

h5ls(h5File)
#>   group   name     otype dclass dim
#> 0     /    foo H5I_GROUP           
#> 1  /foo foobaa H5I_GROUP