Learn R Programming

readMLData (version 0.9-7)

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

Description

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

Usage

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.

Value

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

Details

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

See Also

readMLData.

Examples

Run this code
## Not run: 
#   pathData <- getPath("exampleData")
#   pathDescription <- getPath("exampleDescription")
#   dsList <- prepareDSList(pathData, pathDescription)
#   dat <- dsDownload(dsList, "glass", "wget", "links.txt")
# ## End(Not run)

Run the code above in your browser using DataLab