Marshalling of an R objects
# S3 method for default
marshal(x, ...)
An R object.
Not used.
A marshalled
object as described in marshal()
.
This is the default, fallback method for marshalling of an
R object. It assumes that the object do not need specific
marshalling, but can be serialized as-is. All this default
method does is wrapping the original object up in a
marshalled
object, so that the original object can be
recovered via unmarshalled()
.
x <- data.frame(a = 1:3, b = letters[1:3])
x_ <- marshal(x)
x2 <- unmarshal(x_)
stopifnot(identical(x2, x))