Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

save.Object

Saves an Object to a file or a connection


Description

Saves an Object to a file or a connection.

Usage

## S3 method for class 'Object'
save(this, file=NULL, path=NULL, compress=TRUE, ..., safe=TRUE)

Arguments

file

Filename or connection to which the Object should be saved. If NULL, the Object will be save to a file named "{class name}.{memory location}.RData", e.g. "Object.26979608.RData".

path

The path where the file should be saved.

compress

If TRUE, the file is compressed to, otherwise not.

...

Other arguments accepted by save() in the base package.

safe

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.

Value

Returns nothing.

Author(s)

Henrik Bengtsson

See Also

*load() and save(), load(). For more information see Object.

Examples

## Not run: For a complete example see help(Object).

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.