Rgb (version 1.5.1)

RDT storage files:

Description

Functions to write a single object to a file, and to restore it.

Usage

saveRDT(object, file, compress = "gzip", compression_level = 6)
  readRDT(file, version = FALSE)

Arguments

object
An object of class to store.
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 save
compression_level
To be passed to save
version
Single logical value, whether to return the stored object or the version of the package used to store it.

Value

saveRDT returns nothing, readRDT returns the object stored in the file or a single character value (depends on the version argument).

Details

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 , but no guarantee is provided for classes with non-atomic slots (particularly environment-derived ones).

See Also

refTable-class, saveRDS, saveRDS