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
 8
 9
10
11
12
## Not run: 
# Fail gracefully if any resources are not available
try({

# make current directory PWFSLSmoke package directory
filePath <- "./localData/airsis_ebam_example-clean.csv"

fileString <- generic_downloadData(filePath)

}, silent = FALSE)

## End(Not run)

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.