Skip to contents

weatherunion comes bundled with a csv file in `inst/extdata` directory. This function make them easy to access.

Usage

path_to_file(path = NULL)

Source

This function is adapted from `readxl::readxl_example()`.

Arguments

path

Name of file in quotes with extension; `"zomato_locations.csv"` will work. If `NULL`, the example files will be listed.

Examples

if (FALSE) {
path_to_file()
path_to_file("zomato_locations.csv")
head(read.csv(path_to_file("zomato_locations.csv")))
}