Rev 8102 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{dput}\alias{dput}\alias{dget}\title{Write an Internal Object to a File}\description{Writes an ASCII text representation of an \R object to a file, or usesone to recreate the object.}\usage{dput(x, file = "")dget(file)}\details{\code{dput} opens \code{file} and deparses the object \code{x} intothat file. The object name is not written (contrary to \code{dump}).If \code{x} is a function the associated environment is stripped.Hence scoping information can be lost.Using \code{dget}, the object can be recreated (with the limitationsmentioned above).}\seealso{\code{\link{deparse}}, \code{\link{dump}}, \code{\link{write}}.}\examples{## Write an ASCII version of mean to the file "foo"dput(mean, "foo")## And read it back into `bar'bar <- dget("foo")unlink("foo")}\keyword{file}\keyword{programming}