Skip to content

vroom comes bundled with a number of sample files in its 'inst/extdata' directory. Use vroom_examples() to list all the available examples and vroom_example() to retrieve the path to one example.

Usage

vroom_example(path)

vroom_examples(pattern = NULL)

Arguments

path

Name of file.

pattern

A regular expression of filenames to match. If NULL, all available files are returned.

Examples

# List all available examples
vroom_examples()
#>  [1] "fwf-sample.txt"             "mtcars-4.csv"              
#>  [3] "mtcars-6.csv"               "mtcars-8.csv"              
#>  [5] "mtcars-concatenated.csv.gz" "mtcars-multi-cyl.zip"      
#>  [7] "mtcars.csv"                 "mtcars.csv.bz2"            
#>  [9] "mtcars.csv.gz"              "mtcars.csv.tar.gz"         
#> [11] "mtcars.csv.xz"              "mtcars.csv.zip"            

# Get path to one example
vroom_example("mtcars.csv")
#> [1] "/home/runner/work/_temp/Library/vroom/extdata/mtcars.csv"