Antarmuka tingkat rendah yang sederhana untuk membuat serial ke koneksi.
serialize(object, connection, ascii, xdr = TRUE,
version = NULL, refhook = NULL)<p></p><p>unserialize(connection, refhook = NULL)</p>
| Parameter | Deskripsi |
|---|---|
object |
R object to serialize. |
connection |
an open connection or (for serialize) NULL or (for unserialize) a raw vector (see ‘Details’). |
ascii |
a logical. If TRUE or NA, an ASCII representation is written; otherwise (default) a binary one. See also the comments in the help for save. |
xdr |
a logical: if a binary representation is used, should a big-endian one (XDR) be used? |
version |
the workspace format version to use. NULL specifies the current default version (3). The only other supported value is 2, the default from R 1.4.0 to R 3.5.0. |
refhook |
a hook function for handling reference objects. |
# NOT RUN {
x <- serialize(list(1,2,3), NULL)
unserialize(x)
## see also the examples for saveRDS
# }