saveDelayedObject: Save a delayed object

saveDelayedObjectR Documentation

Save a delayed object

Description

Saves a delayed object recursively.

Usage

saveDelayedObject(x, file, name)

## S4 method for signature 'DelayedArray'
saveDelayedObject(x, file, name)

Arguments

x

An R object containing a delayed operation or seed class.

file

String containing the path to a HDF5 file.

name

String containing the name of the group to save into.

Details

The saveDelayedObject generic is intended for developers to create methods for new operations. End-users should use the saveDelayed function instead.

The DelayedArray method will simply extract the seed and use it to call saveDelayedObject again.

Value

A NULL is returned invisibly. A group is created at name inside file and the delayed operation is saved within.

Author(s)

Aaron Lun

Examples

library(HDF5Array)
X <- rsparsematrix(100, 20, 0.1)
Y <- DelayedArray(X)[1:10,1:5]

temp <- tempfile(fileext=".h5")
rhdf5::h5createFile(temp)
saveDelayedObject(Y, temp, "FOO")
rhdf5::h5ls(temp)

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