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

copy_raw(
  from,
  to,
  filetype,
  sub_folder = NULL,
  task_dir.names = "none",
  remove = FALSE,
  copy = TRUE,
  overwrite = "no"
)

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.