This function will automatically copy files from the Task directory to the Raw data directory

copy_files(
  from,
  to,
  filetype,
  sub_folder = NULL,
  task_dir.names = c("none", "numbered", "asis"),
  remove = FALSE,
  copy = TRUE,
  overwrite = c("no", "yes", "skip"),
  ignore = NULL,
  recursive = TRUE
)

Arguments

from

a directory of task folders

to

a directory where raw data files are to be copied to

filetype

a string pattern identifying a specific type of raw data file (e.g. .edat2).

sub_folder

optional. do you want to copy files to a sub folder within the `to = ` directory?

task_dir.names

Relationship between task name and task folder name. Default is "none". Alternative options are; "numbered", "asis".

remove

logical. Should the files in the 'from' directory be deleted? (Default: FALSE)

copy

logical. Do you want to copy the files? (Default = TRUE)

overwrite

"no" (default), "yes", or "skip". "no" will copy over the file but append the file with "DUPLICATED". "yes" will overwrite the file. "skip" will not copy the file over.

ignore

a character vector of task folders to ignore

recursive

logical. Should the function search for files recursively?