ic_copy_file_wlog | R Documentation |
A wrapper for fs::file_copy() that adds a project-level log with pertinent info into file_log.csv
ic_copy_file_wlog(path, new_path, overwrite = FALSE)
path |
A character vector of one or more paths. |
new_path |
A character vector of paths to the new locations. |
overwrite |
Overwrite files if they exist. Default is FALSE. If this is FALSE and the file exists an error will be thrown. |
Copy file with log
starting or adding a file_log.csv at project-level, as well as copying file as expected
## Not run:
.old_wd <- setwd(tempdir())
fs::file_create("foo")
ic_copy_file_wlog("foo", "bar")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.