read_md_table_example {readMDTable}R Documentation

Get Path to readMDTable Examples

Description

Get Path to readMDTable Examples

Usage

read_md_table_example(file = NULL)

Arguments

file

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

Details

readMDTable comes with a number of well-known datasets as example markdown tables in the inst/extdata directory. read_md_table_example will list the file names or return the path of a specified file.

Value

Vector of example file names if file is NULL, else the path to the example markdown table file.

Examples

# List the available example files
read_md_table_example()

# Get the path to the mtcars example file
read_md_table_example("mtcars.md")

# Read in an example file
mtcars_path <- read_md_table_example("mtcars.md")
read_md_table(mtcars_path)

[Package readMDTable version 0.1.1 Index]