Description Usage Arguments See Also
Function to write a single object to file, but create a backup file first if
an older version of the file exists. This backup is restored in case the
writing to the file fails. Situations where saveRDS
may fail
include forced termination of the running R process (e.g., HPC
schedulers); those situations likely will not allow that the original file be
restored from the backup – this will have to be done manually.
1 | save_to_rds_with_backup(object, file, tag_backup = "backup", ...)
|
object |
R object to serialize. |
file |
a connection or the name of the file where the R object is saved to or read from. |
tag_backup |
A character string. A tag that is appended at the end of
the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.