msgpack_format {RcppMsgPack}R Documentation

Format data for 'MsgPack'

Description

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

Usage

msgpack_format(x)

msgpackFormat(x)

Arguments

x

An r object.

Value

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

Examples

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

[Package RcppMsgPack version 0.2.3 Index]