msgpack_format: Format data for 'MsgPack'

Description Usage Arguments Value Examples

View source: R/functions.r

Description

A helper function to format R data for input to 'MsgPack'.

Usage

1
2
3

Arguments

x

An r object.

Value

A formatted R object to use as input to msgpack_pack. Vectors are converted into Lists.

Examples

1
2
3
4
x <- msgpack_format(1:10)
x_packed <- msgpack_pack(x)
x_unpacked <- msgpack_unpack(x_packed)
x_simplified <- msgpack_simplify(x_unpacked)

RcppMsgPack documentation built on Nov. 19, 2018, 1:04 a.m.