Reads the binary envelope written by stream_to_js and
returns the header and decoded body as a list.
Arguments
- path
Character scalar. Absolute path to a
.binfile produced bystream_to_js.
Value
A list with components:
headerNamed list parsed from the JSON header (contains
data_type,signature,timestamp, and any extra fields).dataDecoded body: a
rawvector for"raw", an R object for"json", or a numeric/integer vector for"int32","float32","float64".