H5Iis_valid: Determine whether an identifier is valid

View source: R/H5I.R

H5Iis_validR Documentation

Determine whether an identifier is valid

Description

An identifier is no longer valid after it has been closed.

Usage

H5Iis_valid(h5identifier)

Arguments

h5identifier

Object of class H5IdComponent.

Value

A logical of length 1. TRUE is the identifier is valid, FALSE if not.

Examples


h5file <- system.file("testfiles", "h5ex_t_array.h5", package="rhdf5")
fid <- H5Fopen(h5file)

## test whether the identifer to the opened file is valid
H5Iis_valid(fid)

## the file ID is no longer valid after it has been closed
H5Fclose(fid)
H5Iis_valid(fid)


grimbough/rhdf5 documentation built on Dec. 9, 2024, 8:40 p.m.