backup_file | R Documentation |
Back up and rename the file or directory
backup_file(path, remove = FALSE, quiet = FALSE)
path |
path to a file or a directory |
remove |
whether to remove the original path; default is false |
quiet |
whether not to verbose the messages; default is false |
FALSE
if nothing to back up, or the back-up path
if path
exists
path <- tempfile()
file.create(path)
path2 <- backup_file(path, remove = TRUE)
file.exists(c(path, path2))
unlink(path2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.