download_nitrc_file: Download NITRC file

View source: R/download_nitrc_file.R

download_nitrc_fileR Documentation

Download NITRC file

Description

Download a single file from NITRC

Usage

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

## 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/nitrcbot documentation built on Feb. 6, 2023, 9:17 p.m.