readxl comes bundled with some example files in its inst/extdata directory. This function make them easy to access.

readxl_example(path = NULL)

Arguments

path

Name of file. If NULL, the example files will be listed.

Examples

readxl_example()
#> [1] "clippy.xls" "clippy.xlsx" "datasets.xls" "datasets.xlsx" #> [5] "deaths.xls" "deaths.xlsx" "geometry.xls" "geometry.xlsx" #> [9] "type-me.xls" "type-me.xlsx"
readxl_example("datasets.xlsx")
#> [1] "/Users/jenny/rrr/readxl/inst/extdata/datasets.xlsx"