Learn R Programming

mpactr (version 0.1.0)

example: 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(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()

example("metadata.csv")

Run the code above in your browser using DataLab