ic_copy_file_wlog: Copy file and log where it was copied from

View source: R/save_log.R

ic_copy_file_wlogR Documentation

Copy file and log where it was copied from

Description

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.

Details

Copy file with log

Value

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

Examples

## Not run: 
.old_wd <- setwd(tempdir())
fs::file_create("foo")
ic_copy_file_wlog("foo", "bar")

## End(Not run)

IntegralEnvision/integral documentation built on Nov. 4, 2024, 2 p.m.