A helper function to create a map object for input to 'MsgPack'.
msgpack_map(key, value)msgpackMap(key, value)
msgpackMap(key, value)
A list or vector of keys (coerced to list). Duplicate keys are fine (connects to std::multimap in C++).
A list or vector of values (coerced to list). This should be the same length as key.
An data.frame also of class "map" that can be used as input to msgpack_pack.
# NOT RUN { x <- msgpack_map(key=letters[1:10], value=1:10) x_packed <- msgpack_pack(x) x_unpacked <- msgpack_unpack(x_packed) # }
Run the code above in your browser using DataLab