dsDownload {readMLData}R Documentation

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.

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

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

## End(Not run)

[Package readMLData version 0.9-7 Index]