RDT storage files | R Documentation |
Functions to write a single refTable
object to a file, and to restore it.
saveRDT(object, file, compress = "gzip", compression_level = 6)
readRDT(file, version = FALSE)
object |
An object of class |
file |
A connection or the name of the file where the R object is saved to or read from. The '.rdt' file extension is recommended, but not mandatory. |
compress |
To be passed to |
compression_level |
To be passed to |
version |
Single logical value, whether to return the stored object or the version of the package used to store it. |
These functions mimic the saveRDS
and saveRDS
system, without storing the class definition in the file (which can lead to about 100 useless Ko of data and longer loading times). It is intented to manage all classes extending refTable
, but no guarantee is provided for classes with non-atomic slots (particularly environment-derived ones).
saveRDT
returns nothing, readRDT
returns the object stored in the file or a single character value (depends on the version
argument).
To avoid whole-environment copying, environments of function
slots are discarded.
Sylvain Mareschal
refTable-class
, saveRDS
, saveRDS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.