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

vcr_test_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.

Value

A character vector giving the path

Note

Beware if you have more than one tests directories in your package root. This may not work as intended if that is the case.

Examples

if (interactive()) { vcr_test_path("fixtures") }