generic_downloadData: Download generic data

View source: R/generic_downloadData.R

generic_downloadDataR Documentation

Download generic data

Description

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

Usage

generic_downloadData(filePath)

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

## 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)

MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.