atFilePath
EXPERIMENTAL Function to Find Data Files for Tests

Description

Given the name of a test data file along with whether its name is relative to the current test file, the global test data area, or a package, return a full path to it. PLEASE use testDataPath for files in the global test data area, system.file for files in a package, and do not use data files in the same directory as the test file.

Usage

atFilePath(..., global = FALSE, package = NULL)

Arguments

... The components (directory/ies and base name) of the path to the file.
global If TRUE the file name is relative to the global test data area. Use testDataPath() for this. If FALSE the file name is relative to the directory that the current test file is in. Do not do this.
package A string naming the package where the file is found. Use system.file(package=package, ...) instead.
Value
A path to the file that will work in the current session of R.
Note
Do not use this function.
Author
Bill Dunlap, Cloud Software Group, Inc.
See Also
testDataPath, system.file
Package assertionTest version 6.1.4-13
Package Index