path_to_file | R Documentation |
twriTemplates comes with five bundled example data files in its
inst/extdata
directory. This function makes them easy to access for
practice reading with read.csv()
or readr::read_csv()
.
path_to_file(file = NULL)
file |
Name of the file in quotes with extension; |
file path
This function is adapted from readxl::readxl_example()
path_to_file()
path_to_file("easterwood.csv")
head(read.csv(path_to_file("easterwood.csv")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.