dsDownload: Run an external tool to download a data set.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/functions.R

Description

The function allows to run an external download tool with arguments read from a file in a data folder.

Usage

1
dsDownload(dsList, id, command, fileName)

Arguments

dsList

Data frame as created by prepareDSList().

id

Name of the data set in dsList$identification or the index of the row in dsList corresponding to the data set.

command

Character. A command line web downloding tool, for example "wget".

fileName

Character. A name of the file in the data directory, which contains the URL of the data on the web.

Details

If no data set or more than one data set corresponding to id is found, a corresponding error message is printed.

Value

Function has no value. The protocol generated by the specified tool is printed.

Author(s)

Petr Savicky

See Also

readMLData.

Examples

1
2
3
4
5
6
7
## Not run: 
  pathData <- getPath("exampleData")
  pathDescription <- getPath("exampleDescription")
  dsList <- prepareDSList(pathData, pathDescription)
  dat <- dsDownload(dsList, "glass", "wget", "links.txt")

## End(Not run)

readMLData documentation built on May 2, 2019, 7:49 a.m.