Saves an interpElections_result object to an RDS file, handling
non-serializable components (e.g., SpatRaster from terra).
Arguments
- result
An
interpElections_resultobject.- path
Character. File path to save to (typically
.rds).- compress
Logical or character. Compression argument passed to
saveRDS(). Default:TRUE.