is_open: Check if HDF5Matrix is open

View source: R/S3_core.R

is_openR Documentation

Check if HDF5Matrix is open

Description

Check whether an HDF5Matrix object is still valid and open.

Usage

is_open(x)

Arguments

x

An HDF5Matrix object

Value

Logical. TRUE if object is valid and open, FALSE otherwise.

Examples


tmp <- tempfile(fileext = ".h5")

X  <- hdf5_create_matrix(tmp, "data/matrix", data = matrix(rnorm(100), 10, 10))

X <- hdf5_matrix(tmp, "data/matrix")
is_open(X)  # TRUE

close(X)
is_open(X)  # FALSE

unlink(tmp)



BigDataStatMeth documentation built on May 15, 2026, 1:07 a.m.