Find the root path of an IIDDA-associated project (or any project
with a file of a specific name in the root).
Usage
proj_root(filename = ".iidda", start_dir = getwd(), default_root = start_dir)
in_proj(filename = ".iidda", start_dir = getwd())
Arguments
- filename
String giving the name of the file that identifies the project.
- start_dir
Optional directory from which to start looking for `filename`.
- default_root
Project root to use if `filename` is not found.
Details
Recursively walk up the file tree from `start_dir` until `filename` is
found, and return the path to the directory containing `filename`. If
`filename` is not found, return `default_root`