generic_downloadData: Download generic data

Description Usage Arguments Details Value Examples

View source: R/generic_downloadData.R

Description

This function takes a location to a delimited file, gets the file, and returns a string containing the file data.

Usage

1

Arguments

filePath

Either a path to a file, or a connection (http(s)://, ftp(s)://).

Details

This function is essentailly a wrapper for read_file.

Value

A character vector of length 1, containing data from the file located at filePath.

Examples

1
2
3
4
5
6
7
## Not run: 
# make current directory PWFSLSmoke package directory
filePath <- "./localData/airsis_ebam_example-clean.csv"

fileString <- generic_downloadData(filePath)

## End(Not run)

PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.