Learn R Programming

mpactr (version 0.2.1)

example_path: Get file paths for examples

Description

mpactr contains a number of example files in the inst/extdata directory. This function makes them accessible in documentation that shows how file paths are used in function examples.

Usage

example_path(file = NULL)

Value

A file path to example data stored in the inst/extdata directory of the package.

Arguments

file

Name of a file. If NULL, all examples files will be listed.

Examples

Run this code
example_path()

example_path("metadata.csv")

Run the code above in your browser using DataLab