backup: Backup an object

Description Usage Arguments Examples

View source: R/backup.R

Description

Take an object and if a a copy of it with the suffix "bak" is not present on the environment, it creates one (when overwrite = FALSE).

Usage

1
backup(object, overwrite = FALSE)

Arguments

object

the object to back up.

overwrite

force overwriting an existing backup?

Examples

1
2
3
4
5
6
7
8
test <- 1:10
backup(test)
test_bak
test <- 11:20
backup(test)
test_bak
backup(test, TRUE)
test_bak

mtcruz/mtcruzr documentation built on Dec. 26, 2019, 11:04 p.m.