Skip to contents

Find the project root by looking upwards for an .Rproj file, an R package DESCRIPTION, a .git folder, or a .here file (so it works in both RStudio and Positron).

Usage

ger_root(path = ".", tree = FALSE)

Arguments

path

path to start searching from

tree

logical, print a folder tree?

Value

root path (invisibly if tree = TRUE)

Examples

# ger_root()
# ger_root(tree = TRUE)