jst_example: Get path to jstor example

Description Usage Arguments Details Value Examples

View source: R/example.R

Description

jstor includes several sample files for demonstration purposes. This helper makes them easy to access.

Usage

1
jst_example(path = NULL)

Arguments

path

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

Details

The code for this function was adapted from the package readr.

Value

Either a character vector with the names of example files (if jst_example() is called without supplying an argument), or a character vector indicating the path to the example file.

Examples

1
2
jst_example()
jst_example("article_with_references.xml") 

jstor documentation built on Dec. 11, 2021, 9:56 a.m.