download_nitrc_file: Download NITRC file

Description Usage Arguments Value Examples

View source: R/download_nitrc_file.R

Description

Download a single file from NITRC

Usage

1
2
download_nitrc_file(file_path, destfile = NULL, prefix = NULL,
  verbose = FALSE, error = FALSE)

Arguments

file_path

Path to the file to be dowloaded

destfile

Destination filename

prefix

Prefix the file name with this (prevents overwritting of same name files in case function is used to download multiple scan types at once)

verbose

Should progress be added to download?

error

Should function error if download failed?

Value

Display path to the downloaded file

Examples

1
2
3
## file_path is retrieved using the get_scan_resources() function
## Not run: r <- get_scan_resources('NITRC_IR_E10453')
## Not run: download_nitrc_file(r$URI[1])

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