Download a single file from NITRC

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
if (FALSE) r <- get_scan_resources('NITRC_IR_E10453')
if (FALSE) download_nitrc_file(r$URI[1])