DataPathFromDataArg: Get the data path.
Description
Verifies that new data is either an existing datafile or a dataframe
If a dataframe, save as a CSV file
If neither an existing datafile nor a dataframe, halt with error
Usage
DataPathFromDataArg(dataSource, saveFile = NULL)
Arguments
- dataSource
object. The dataframe or path to CSV to get data for.
- saveFile
character. Optional. A file name to write an autosaved dataframe to.