downloadFiles: Download specific files from a data set

Description Usage Arguments Value Examples

View source: R/download.R

Description

Download specific files for a given example data set.

Usage

1
2
3
4
5
6
7
8
9
downloadFiles(
  files,
  technique,
  dataSet,
  dataSetDir = "DataSets",
  internalDir = TRUE,
  ask = TRUE,
  ...
)

Arguments

files

character vector of file paths to download

technique

metabolomic technique name

dataSet

data set name

dataSetDir

directory to store local data sets. If internalDir = TRUE this is a directory relative to the library location.

internalDir

stored the data set internally to the package installation location

ask

ask before downloading

...

arguments to pass to piggyback::pb_download()

Value

A list object containing the API request response results for the downloaded files.

Examples

1
2
3
4
## Not run: 
downloadFiles(c('31.mzML.gz','32.mzML.gz'),'FIE-HRMS','BdistachyonTechnical')

## End(Not run)

metaboData documentation built on Aug. 20, 2021, 5:06 p.m.