getpd {toscutil} | R Documentation |
Get Project Directory
Description
Find the project root directory by traversing the current working directory filepath upwards until a given set of files is found.
Usage
getpd(root.files = c(".git", "DESCRIPTION", "NAMESPACE"))
Arguments
root.files |
if any of these files is found in a parent folder, the path to that folder is returned |
Value
getpd
returns the absolute, normalized project root directory as
string. The forward slash is used as path separator (independent of the OS).
[Package toscutil version 2.7.4 Index]