tidycode comes bundled with a few small files to use in examples. This function makes them easy to access.

tidycode_example(path = NULL)

Arguments

path

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

Examples

tidycode_example()
#> [1] "example_analysis.R" "example_plot.R"
tidycode_example("example_plot.R")
#> [1] "/Users/lucymcgowan/wonderland/tidycode/inst/extdata/example_plot.R"