saveRDS_robust: Robust saveRDS

Description Usage Arguments Value

View source: R/util.R

Description

A saveRDS with atomic write and backup support

Usage

1
2
saveRDS_robust(dt, fpath, backup_on_overwrite = TRUE, allowZero = FALSE,
  ...)

Arguments

dt

The object to save

fpath

The path to save the object

backup_on_overwrite

Whether to keep a backup when overwriting an existing file

allowZero

Whether to save zero length objects

...

The dots are passed to saveRDS

Value

TRUE if successful, a negative value if it fails


henfiber/later documentation built on May 20, 2019, 6:46 p.m.