| is_open | R Documentation |
Check whether an HDF5Matrix object is still valid and open.
is_open(x)
x |
An |
Logical. TRUE if object is valid and open, FALSE otherwise.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.