Skip to main content

serialize_rds

Function serialize_rds 

Source
pub fn serialize_rds(value: &RValue, compress: bool, ascii: bool) -> Vec<u8> 
Expand description

Serialize an R value to an RDS byte stream, optionally gzip-compressed.

When compress is true and the compression feature is enabled, the output is gzip-compressed (matching GNU R’s default saveRDS(compress = TRUE)). When ascii is true, uses the ASCII text format instead of XDR binary.