msgpack_simplify: Simplify 'MsgPack'

Description Usage Arguments Value Examples

View source: R/functions.r

Description

A helper function for simplifying a 'MsgPack' return object.

Usage

1
2
3

Arguments

x

Return object from msgpack_unpack.

Value

A simplified return object from msgpack_unpack. Lists of all the same type are concatenated into an atomic vector. Maps are simplified to named lists or named vectors as appropriate. NULLs are converted to NAs if simplified to vector.

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)

Example output



RcppMsgPack documentation built on May 2, 2019, 3:44 a.m.