Learn R Programming

test.assessr (version 1.1.1)

find_project_root: Find R project root directory

Description

Searches upward from a starting path to locate the root of an R package or project.

Usage

find_project_root(start = getwd())

Value

character path to project root, or NULL if not found

Arguments

start

character, starting path (e.g., test directory or script path)