Learn R Programming

nitrcbot (version 1.2)

download_nitrc_dir: Download whole image drectory

Description

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.

Usage

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

Run this code
# NOT RUN {
## Download the full directory (individual files) of T1 data
# }
# NOT RUN {
t1_res <- download_nitrc_dir("NITRC_IR_E10453", scan_type="T1")
# }
# NOT RUN {
## Download a zipped file containing the full directory
# }
# NOT RUN {
download_nitrc_dir("NITRC_IR_E10453", scan_type="T1", zipped = TRUE)
# }

Run the code above in your browser using DataLab