Rev 10108 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{save}\title{Save R Objects}\usage{save(\dots, list = character(0), file = "", ascii = FALSE)save.image(file = ".Rdata")}\alias{save}\alias{save.image}\arguments{\item{\dots}{the names of the objects to be saved.}\item{list}{A character vector containing the names of objects to besaved.}\item{file}{the name of the file where the data will be saved.}\item{ascii}{if \code{TRUE}, an ASCII representation of the data iswritten. This is useful for transporting data between machines ofdifferent types. The default value of \code{ascii} is \code{FALSE}which leads to a more compact binary file being written.}}}\description{\code{save} writes a external representation of \R objects to thespecified file. The objects can be read back from the file at a laterdate by using the function \code{load}.\code{save.image()} is just a short-cut for ``save my currentenvironment'',i.e., \code{save(list = ls(all=TRUE), file = ".RData")}. It is what alsohappens with \code{\link{q}("yes")}.}\seealso{\code{\link{dput}}, \code{\link{dump}}, \code{\link{load}}.}\examples{x <- runif(20)y <- list(a = 1, b = TRUE, c = "oops")save(x, y, file = "xy.Rdata")save.image()unlink("xy.Rdata")unlink(".RData")}\keyword{file}