readr comes bundled with a number of sample files in its inst/extdata directory. This function make them easy to access

readr_example(path)

Arguments

path

Name of file

Examples

readr_example("challenge.csv")
#> [1] "/Users/hadley/Documents/ingest/readr/inst/extdata/challenge.csv"