Learn R Programming

vcr (version 1.6.0)

vcr_test_path: Locate file in tests directory

Description

This function, similar to testthat::test_path(), is designed to work both interactively and during tests, locating files in the tests/ directory.

Usage

vcr_test_path(...)

Value

A character vector giving the path

Arguments

...

Character vectors giving path component. each character string gets added on to the path, e.g., vcr_test_path("a", "b") becomes tests/a/b relative to the root of the package.

Examples

Run this code
if (interactive()) {
vcr_test_path("fixtures")
}

Run the code above in your browser using DataLab