Expand description
A Rust library for reading and writing R RDS files without requiring an R runtime.
This library provides functionality to serialize and deserialize R objects to/from the RDS binary format.
Structs§
- Attributes
- Attributes attached to R objects Optimized with SmallVec to avoid heap allocation for common case of 0-2 attributes
- Data
Frame Data - Data frame structure (boxed to reduce RObject enum size)
- Factor
Data - Factor structure (boxed to reduce RObject enum size)
- Pairlist
Element - An element in a pairlist, optionally tagged
- S4Object
Data - S4 object structure (boxed to reduce RObject enum size)
Enums§
- Error
- Errors that can occur during RDS parsing or writing.
- Logical
- Represents a logical value in R (TRUE, FALSE, or NA)
- RObject
- Represents any R object that can be stored in an RDS file.
Functions§
- read_
rds - Read an RDS file from a byte slice.
- write_
rds - Write an RObject to RDS format. Returns gzip-compressed RDS data.
Type Aliases§
- Result
- Result type alias using our Error type.