copy_vrls: Copy VRLS files to new directory

Description Usage Arguments Details Author(s)

View source: R/copy_vrls.R

Description

Copies vrl files from field directory

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
copy_vrls(
  dir = ".",
  dest,
  file_regex = "RLD",
  file_type = "vrl",
  regex_exclude = TRUE,
  all_files = list.files(dir, pattern = paste0("\\.", file_type, "$"), full.names =
    TRUE, recursive = TRUE),
  match_files = grep(all_files, pattern = file_regex, invert = regex_exclude, value =
    TRUE),
  ...
)

Arguments

dir

string, the base directory to begin looking for files

dest

string, a destination directory. Will be created if it doesn't exist

file_regex

regex for matching

file_type

the file extension for files to move

regex_exclude

logical, whether the regex should match files to exclude or include

all_files

all prospective files to copy

match_files

files which match the parameters from the regex and file type

...

additional args passed to file.copy

full.names

logical

recursive

logical

Details

Copies files

Author(s)

Matt Espe


fishsciences/ybt documentation built on March 11, 2021, 8:45 a.m.