\HeaderA{readRDS}{Internal Serialization Interface}{readRDS}
\aliasA{.readRDS}{readRDS}{.readRDS}
\aliasA{.saveRDS}{readRDS}{.saveRDS}
\keyword{internal}{readRDS}
\begin{Description}\relax
Internal functions for serialization.  See \code{\LinkA{serialize}{serialize}} for
public (but experimental) versions.
\end{Description}
\begin{Usage}
\begin{verbatim}
.saveRDS(object, file = "", ascii = FALSE, version = NULL,
         compress = TRUE, refhook = NULL)

.readRDS(file, refhook = NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] \R{} object to serialize.
\item[\code{file}] a connection or the name of the file where the R object
is saved to or read from.
\item[\code{ascii}] a logical.  If \code{TRUE}, an ASCII representation is
written; otherwise (default except for text-mode connections), a
more compact binary one is used.
\item[\code{version}] the workspace format version to use.  \code{NULL}
specifies the current default format.  The version used from \R{}
0.99.0 to \R{} 1.3.1 was version 1.  The default format as from \R{}
1.4.0 is version 2.
\item[\code{compress}] a logical specifying whether saving to a named file is
to use compression.  Ignored when \code{file} is a connection and for
workspace format version 1.
\item[\code{refhook}] a hook function for handling reference objects.
\end{ldescription}
\end{Arguments}
\begin{Value}
For \code{.readRDS}, an \R{} object.

For \code{.saveRDS}, \code{NULL} invisibly.
\end{Value}

