download_nitrc_dir: Download whole image drectory

Description Usage Arguments Value Examples

View source: R/download_nitrc_dir.R

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

1
2
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

1
2
3
4
5
## Download the full directory (individual files) of T1 data
## Not run: t1_res <- download_nitrc_dir("NITRC_IR_E10453", scan_type="T1")

## Download a zipped file containing the full directory
## Not run: download_nitrc_dir("NITRC_IR_E10453", scan_type="T1", zipped = TRUE)

neuroconductor-devel-releases/nitrcbot documentation built on May 1, 2020, 8:30 a.m.