The R Project SVN R

Rev

Rev 26384 | Rev 29509 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26384 Rev 26401
Line 9... Line 9...
9
}
9
}
10
\usage{
10
\usage{
11
serialize(object, connection, ascii = FALSE, refhook = NULL)
11
serialize(object, connection, ascii = FALSE, refhook = NULL)
12
unserialize(connection, refhook = NULL)
12
unserialize(connection, refhook = NULL)
13
.saveRDS(object, file = "", ascii = FALSE, version = NULL,
13
.saveRDS(object, file = "", ascii = FALSE, version = NULL,
14
         compress = FALSE, refhook = NULL) 
14
         compress = FALSE, refhook = NULL)
15
.readRDS(file, refhook = NULL) 
15
.readRDS(file, refhook = NULL)
16
}
16
}
17
\arguments{
17
\arguments{
18
  \item{object}{\R object to serialize.}
18
  \item{object}{\R object to serialize.}
19
  \item{file}{a connection or the name of the file where the R object
19
  \item{file}{a connection or the name of the file where the R object
20
    is saved to or read from.}
20
    is saved to or read from.}
21
  \item{ascii}{a logical.  If \code{TRUE}, an ASCII representation is
21
  \item{ascii}{a logical.  If \code{TRUE}, an ASCII representation is
22
    written; otherwise (default), a more compact binary one is used.} 
22
    written; otherwise (default), a more compact binary one is used.}
23
  \item{version}{the workspace format version to use.  \code{NULL}
23
  \item{version}{the workspace format version to use.  \code{NULL}
24
    specifies the current default format.  The version used from \R
24
    specifies the current default format.  The version used from \R
25
    0.99.0 to \R 1.3.1 was version 1.  The default format as from \R
25
    0.99.0 to \R 1.3.1 was version 1.  The default format as from \R
26
    1.4.0 is version 2.}
26
    1.4.0 is version 2.}
27
  \item{compress}{a logical specifying whether saving to a named file is
27
  \item{compress}{a logical specifying whether saving to a named file is
28
    to use compression.  Ignored when \code{file} is a connection and for
28
    to use compression.  Ignored when \code{file} is a connection and for
29
    workspace format version 1.}
29
    workspace format version 1.}
30
  \item{connection}{an open connection.}
30
  \item{connection}{an open connection.}
31
  \item{refhook}{a hook function for handling reference objects.}
31
  \item{refhook}{a hook function for handling reference objects.}
32
}
32
}
33
\description{
-
 
34
  A simple interface for serializing to connections.
-
 
35
}
-
 
36
\details{
33
\details{
37
  The function \code{serialize} writes \code{object} to the specified
34
  The function \code{serialize} writes \code{object} to the specified
38
  connection.  Sharing of reference objects is preserved within the
35
  connection.  Sharing of reference objects is preserved within the
39
  object but not across separate calls to serialize.  If
36
  object but not across separate calls to serialize.  If
40
  \code{connection} is \code{NULL} then \code{object} is serialized to a
37
  \code{connection} is \code{NULL} then \code{object} is serialized to a