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_path(). 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_path(), proj_switch()

Examples

try(proj_file("A non-existent file"))
#> Warning: is.na() applied to non-(list or vector) of type 'closure'
#> Error in enc2utf8(path) : argument is not a character vector