Searches from current working directory for and Rstudio project file or git repository, falling back on using the current working directory.

findProjectPath()

findProjectName()

Value

findProjectPath returns an absolute path; findProjectName returns the basename of the path.