Skip to content

Conversation

@aakritixyz
Copy link

Description:
This PR fixes bug 18810, ensuring saveRDS and readRDS properly handle all supported connection types and avoid corrupt objects. It also standardizes coding style in serialize.R for clarity and maintainability.

Changes included:
• Correct handling of raw connections in unserialize.
• Proper assignment of connections in saveRDS and readRDS.
• Removal of unsupported compression (zstd) for R 4.2.3.
• Minor style improvements for readability without changing logic.

All changes have been tested:
• saveRDS / readRDS round-trip verification
• infoRDS output check
• Raw connection serialization check

This ensures robust serialization behavior and aligns the code with R Core standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant