Skip to contents

A wrapper for fs::file_copy() that adds a project-level log with pertinent info into file_log.csv [Stable]

Usage

ic_copy_file_wlog(path, new_path, overwrite = FALSE)

Arguments

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.

Value

starting or adding a file_log.csv at project-level, as well as copying file as expected

Details

Copy file with log

Examples

if (FALSE) {
.old_wd <- setwd(tempdir())
fs::file_create("foo")
ic_copy_file_wlog("foo", "bar")
}