url.reader: Read a remote file described in a .url file.

Description Usage Arguments Details Value Examples

View source: R/url.reader.R

Description

This function will load data from a remote source accessible through HTTP or FTP based on configuration information found in the specified .url file. The .url file must specify the URL of the remote data source and the type of data that is available remotely. Only one data source per .url file is supported currently.

Usage

1
url.reader(data.file, filename, variable.name)

Arguments

data.file

The name of the data file to be read.

filename

The path to the data set to be loaded.

variable.name

The name to be assigned to in the global environment.

Details

Examples of the DCF format and settings used in a .url file are shown below:

Example 1 url: http://www.johnmyleswhite.com/ProjectTemplate2sample_data.csv separator: ,

Value

No value is returned; this function is called for its side effects.

Examples

1
2
3
library('ProjectTemplate2')

## Not run: url.reader('example.url', 'data/example.url', 'example')

connectedblue/ProjectTemplate2 documentation built on May 17, 2019, 2:46 p.m.