\Header{dput}{Write an Internal Object to a File}
\alias{dget}{dput}
\keyword{file}{dput}
\keyword{programming}{dput}
\begin{Usage}
\begin{verbatim}
dput(x, file = "")
dget(file)
\end{verbatim}
\end{Usage}
\begin{Value}
\texttt{dput} opens \texttt{file} and deparses the object \texttt{x} into
that file.  The object name is not written (contrary to \texttt{dump}).
If \texttt{x} is a function the associated environment is stripped.
Hence scoping information can be lost.

Using \texttt{dget}, the object can be recreated (with the limitations
mentioned above).\end{Value}
\begin{SeeAlso}
\texttt{\Link{deparse}}, \texttt{\Link{dump}}, \texttt{\Link{write}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Write an ASCII version of mean to the file "foo"
dput(mean, "foo")
## And read it back into `bar'
bar <- dget("foo")
\end{ExampleCode}
\end{Examples}

