saveObject {R.utils} | R Documentation |
Saves an object to a file or a connection
Description
Saves an object to a file or a connection.
Usage
## Default S3 method:
saveObject(object, file=NULL, path=NULL, format=c("auto", "xdr", "rds"), compress=TRUE,
..., safe=TRUE)
Arguments
object |
The object to be saved. |
file |
A filename or |
path |
Optional path, if |
format |
File format. |
compress |
If |
... |
Other arguments accepted by |
safe |
If |
Value
Returns (invisibly) the pathname or the connection
.
Author(s)
Henrik Bengtsson
See Also
loadObject
() to load an object from file.
digest
for how hash codes are calculated from an object.
See also saveRDS
().
[Package R.utils version 2.12.3 Index]