saveObject.Rd
Saves an object to a file or a connection.
# S3 method for default
saveObject(object, file=NULL, path=NULL, format=c("auto", "xdr", "rds"), compress=TRUE,
..., safe=TRUE)
The object to be saved.
A filename or connection
where the object should be saved.
If NULL
, the filename will be the hash code of the object plus ".xdr".
Optional path, if file
is a filename.
File format.
If TRUE
, the file is compressed to, otherwise not.
Other arguments accepted by save()
in the base package.
If TRUE
and file
is a file, then, in order to lower
the risk for incomplete files, the object is first written to a
temporary file, which is then renamed to the final name.
Returns (invisibly) the pathname or the connection
.
loadObject
() to load an object from file.
digest
for how hash codes are calculated from an object.
See also saveRDS
().