dot-locate_project: Find the root of the current project

.locate_projectR Documentation

Find the root of the current project

Description

gets a reverse directory listing and then finds the lowest directory that contains an indication of there being a project in the directory this should work where the 'here' package does not (particularly when knitting in CRAN checks for example, or running in a non package project)

Usage

.locate_project(inputFile = .this_script())

Arguments

inputFile

a file to check the project root of.

Value

the file path of the root of the project

Examples

try({
.locate_project()
})

terminological/ggrrr documentation built on June 15, 2024, 6:35 a.m.