This function takes a location to a delimited file, gets the file, and returns a string containing the file data.
generic_downloadData(filePath)
Either a path to a file, or a connection (http(s)://
,
ftp(s)://
).
A character vector of length 1, containing data from the file located
at filePath
.
This function is essentailly a wrapper for read_file
.
# NOT RUN {
# make current directory PWFSLSmoke package directory
filePath <- "./localData/airsis_ebam_example-clean.csv"
fileString <- generic_downloadData(filePath)
# }
Run the code above in your browser using DataLab