saveDelayedObject | R Documentation |
Saves a delayed object recursively.
saveDelayedObject(x, file, name)
## S4 method for signature 'DelayedArray'
saveDelayedObject(x, file, name)
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. |
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.
A NULL
is returned invisibly.
A group is created at name
inside file
and the delayed operation is saved within.
Aaron Lun
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.