Method to load object from a file or a connection
Method to load object from a file or a connection, which previously have been saved using saveObject
().
## Default S3 method: loadObject(file, path=NULL, format=c("auto", "xdr", "rds"), ...)
file |
A filename or |
path |
The path where the file exists. |
format |
File format. |
... |
Not used. |
The main difference from this method and load
() in the
base package, is that this one returns the object read rather
than storing it in the global environment by its default name.
This makes it possible to load objects back using any variable name.
Returns the saved object.
Henrik Bengtsson
saveObject
() to save an object to file.
Internally load
() is used.
See also loadToEnv
().
See also saveRDS
().
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.