Skip to contents

It can be used as file_outline() + proj.

Usage

proj_file(file = NULL, path = active_rs_proj(), pattern = NULL)

Arguments

file

A filename or regexp to a file inside proj

path

a project path proj_list(). If NULL, will return active project.

pattern

A regular expression to look for

Value

The file outline if multiple matches are found

See also

Other project management helpers: proj-reuseme, proj_list(), proj_switch()

Examples

try(proj_file("A non-existent file"))
#> Error in proj_file("A non-existent file") : 
#>   No match found for "A non-existent file" in
#> /home/runner/work/reuseme/reuseme