find_root_file {rprojroot} | R Documentation |
Append an arbitrary number of path components to the root using
file.path
.
find_root_file(..., criterion, path = ".") find_rstudio_root_file(..., path = ".") find_package_root_file(..., path = ".") find_remake_root_file(..., path = ".") find_testthat_root_file(..., path = ".")
... |
Further path components passed to |
criterion |
A criterion, will be coerced using
|
path |
The start directory |
The find_root_file
function is a simple wrapper around
find_root
that
appends an arbitrary number of path components to the root using
file.path
.
The normalized path of the root as specified by the search criteria, with the additional path components appended. Throws an error if no root is found
## Not run: find_package_root_file("tests", "testthat.R") has_file("DESCRIPTION", "^Package: ")$find_file has_file("DESCRIPTION", "^Package: ")$make_fix_file(".") ## End(Not run)