createDownloadText: createDownloadText

Description Usage Arguments Details Value Author(s) Examples

Description

Builds text for file that downloads data

Usage

1

Arguments

info

data.frame listing data sources. Must have at least the following columns: Local (the name the file should be on disk after downloaded), Remote (the URL of the file), Mode (the way to write to disk, either 'w' or 'wb').

Details

Creates a block of code. The first line is a comment of the file name, then is uses download.file() using the remote URL and the local filename.

Value

Returns the block of text

Author(s)

Jared P. Lander

Examples

1
2
3
dataList <- read.csv(system.file('metadata/DataList.csv', package='RepoGenerator'), 
    stringsAsFactors=FALSE, header=TRUE)
cat(RepoGenerator:::createDownloadText(dataList))

jaredlander/RepoGenerator documentation built on May 10, 2019, 8:06 a.m.