LR.prj_root: Find the project root

Description Usage Arguments Value

View source: R/prj.R

Description

prj_root marker file (.PRJ_ROOT by default) must exist in the project root directory.

Usage

1
LR.prj_root(dir = NULL, marker = ".PRJ_ROOT")

Arguments

dir

where to start the search if a string. If NULL or FALSE then start at the current working directory (getwd()). If TRUE (should only be used in scripts that are sourced/executed) then try directory of the file being sourced, otherwise current working directory.

marker

name of the project root marker file.

Value

project root or NULL if failed


slonik-az/LRutil documentation built on May 7, 2019, 3:17 p.m.