save_rds: Robustly Saves an Object to RDS File Atomically

View source: R/read_rds.R

save_rdsR Documentation

Robustly Saves an Object to RDS File Atomically

Description

Robustly Saves an Object to RDS File Atomically

Usage

save_rds(object, pathname, ...)

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.

Value

(invisible) The pathname of the RDS written.


BHGC/bhgc.wx documentation built on April 7, 2022, 3:47 a.m.