vroom_example: Get path to vroom examples

Description Usage Arguments Examples

Description

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

1
2
3

Arguments

path

Name of file.

pattern

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

Examples

1
2
3
4
5
# List all available examples
vroom_examples()

# Get path to one example
vroom_example("mtcars.csv")

Example output

[1] "fwf-sample.txt" "mtcars-4.csv"   "mtcars-6.csv"   "mtcars-8.csv"  
[5] "mtcars.csv"     "mtcars.csv.bz2" "mtcars.csv.gz"  "mtcars.csv.xz" 
[9] "mtcars.csv.zip"
[1] "/usr/lib/R/site-library/vroom/extdata/mtcars.csv"

vroom documentation built on Feb. 1, 2021, 9:06 a.m.