fc: Copy files and rename with date

View source: R/fn_all.R

fcR Documentation

Copy files and rename with date

Description

Copy files to destination and rename with date and a tag as desired.

Usage

fc(..., des = "", tag = "", td = TRUE)

Arguments

...

⁠<chr>⁠ A vector of file paths of the source files to copy and rename.

des

⁠<chr>⁠ Destination folder. "." to rename files at the current location.

tag

⁠<chr>⁠ Tag to the filename.

td

⁠<lgl>⁠ TRUE to add today (yymmdd) to the filename.

Value

A logical vector indicating if the operation succeeded for each of the files.

Examples

## Not run: 
# Copy a file to home directory
tmp = tempdir()
fc("f1.R","f2.R",des=tmp)

## End(Not run)

edar documentation built on Nov. 15, 2026, 1:07 a.m.