Description Usage Arguments Details Value Examples
View source: R/generic_downloadData.R
This function takes a location to a delimited file, gets the file, and returns a string containing the file data.
1 | generic_downloadData(filePath)
|
filePath |
Either a path to a file, or a connection ( |
This function is essentailly a wrapper for read_file
.
A character vector of length 1, containing data from the file located
at filePath
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.