loadObject

0th

Percentile

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().

Keywords
programming, IO
Usage
# S3 method for default
loadObject(file, path=NULL, format=c("auto", "xdr", "rds"), ...)
Arguments
file

A filename or connection to read the object from.

path

The path where the file exists.

format

File format.

...

Not used.

Details

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.

Value

Returns the saved object.

See Also

saveObject() to save an object to file. Internally load() is used. See also loadToEnv(). See also saveRDS().

Aliases
  • loadObject.default
  • loadObject
Documentation reproduced from package R.utils, version 2.8.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.