quick_copy: Quickly copy files based upon pattern alone

quick_copyR Documentation

Quickly copy files based upon pattern alone

Description

Use regular-expressions via grepl to quickly copy files to a new location.

Usage

quick_copy(from, to, pattern, recursive = FALSE, grepl_params = list(), ...)

Arguments

from, to

character vectors, defining file paths.

pattern

passed to grepl.

recursive

passed to grepl.

grepl_params

additional parameters passed to grepl.

...

additional parameters passed to file.copy.

Details

Operates as a helper function that wraps around grepl, list.files, and file.copy. For another helper function in {relay} that allows file copying, see copy_files.


al-obrien/relay documentation built on May 6, 2023, 10:19 p.m.