worcs_root: Return Absolute File Path of WORCS Project Directory

View source: R/dirnames_filenames.R

worcs_rootR Documentation

Return Absolute File Path of WORCS Project Directory

Description

The search starts at path, and recursively proceeds up the directory hierarchy until a worcs project directory is found.

Usage

worcs_root(path = ".")

Arguments

path

Start directory, Default: '.' (current directory).

Value

Normalized path of the worcs project root directory.

See Also

find_root

Examples

if(requireNamespace("withr", quietly = TRUE)){
withr::with_tempdir({
writeLines("", ".worcs")
worcs_root()
})
}

worcs documentation built on Feb. 22, 2026, 5:07 p.m.