validate: Validate an artifact

View source: R/validate.R

validateR Documentation

Validate an artifact

Description

Validate the delayed objects inside a HDF5 file. This is automatically run at the end of every saveDelayed call to check the integrity of the saved files. See https://artifactdb.github.io/chihaya/ for more details.

Usage

validate(path, name)

Arguments

path

String containing the path to the HDF5 file.

name

String containing the name of the delayed object inside the file.

Value

NULL if there are no problems, otherwise an error is raised.

Author(s)

Aaron Lun

See Also

See https://artifactdb.github.io/chihaya/ for the specification.

Examples

X <- DelayedArray(matrix(runif(100), ncol=20))
Y <- X[1:2,3:5]
temp <- tempfile(fileext=".h5")
saveDelayed(Y, temp)
validate(temp, "delayed")


LTLA/DelayedArraySaver documentation built on Sept. 19, 2024, 1:37 p.m.