Robustly Saves an Object to RDS File Atomically
save_rds(object, pathname, ...)
The R object to be save.
RDS file to written.
(optional) Additional arguments passed to base::saveRDS()
.
(invisible) The pathname of the RDS written.
Uses base::saveRDS internally but writes the object atomically by first writing to a temporary file which is then renamed.