Download entire session or just the files from a particular scan type. If scan_type is NULL the function will download a zipped file containing the entire resource folder for that particular subject_ID or session_ID. If scan_type is specified than depending on the zipped the downloaded files will be zipped or not.

download_nitrc_dir(session_ID = NULL, subject_ID = NULL, project = NULL,
  scan_type = NULL, zipped = FALSE, verbose = FALSE, error = FALSE)

Arguments

session_ID

Downoad scan images for this particular session ID

subject_ID

Download scan images for this particular subject ID

project

The project dataset to whom subject_ID belongs to. This is required if subject_ID is specified

scan_type

Download scan images just for this particular type of scan

zipped

Zip the downloaded files

verbose

Should progress be added to download?

error

Should function error if download failed?

Value

List of downloaded file(s) with full paths

Examples

## Download the full directory (individual files) of T1 data
if (FALSE) t1_res <- download_nitrc_dir("NITRC_IR_E10453", scan_type="T1")

## Download a zipped file containing the full directory
if (FALSE) download_nitrc_dir("NITRC_IR_E10453", scan_type="T1", zipped = TRUE)