msgpack_format: Format data for 'MsgPack'

View source: R/functions.r

msgpack_formatR 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)

eddelbuettel/rcppmsgpack documentation built on March 27, 2024, 12:17 p.m.