copy_raw: Copy raw data files from one direcoty to another

View source: R/copy_raw.R

copy_rawR Documentation

Copy raw data files from one direcoty to another

Description

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

Usage

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.


dr-JT/workflow documentation built on March 19, 2024, 7:51 p.m.