jst_example: Get path to jstor example

View source: R/example.R

jst_exampleR Documentation

Get path to jstor example

Description

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

Usage

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

jst_example()
jst_example("article_with_references.xml") 

jstor documentation built on Aug. 16, 2023, 5:09 p.m.