Saves an object to a file or a connection
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.
Optional path, if
fileis a filename.
TRUE, the file is compressed to, otherwise not.
Other arguments accepted by
save()in the base package.
fileis 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