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