pub fn serialize_rdata(bindings: &[(String, RValue)], compress: bool) -> Vec<u8> ⓘExpand description
Serialize named bindings to GNU R binary .RData format (RDX2).
Writes the “RDX2\n” header followed by the XDR serialization stream containing
a pairlist where each node has TAG=symbol(name) and CAR=value. When compress
is true, the entire output is gzip-compressed.
This is compatible with GNU R’s load().