dir.project: Project Directory

View source: R/project_dir.R

dir.projectR Documentation

Project Directory

Description

Returns the path of the project directory and adds and other folders passed as the names argument

Usage

dir.project(names, useapi = TRUE, slash = T)

Arguments

names

character vector of folder names in a branch. If missing, this function will return project root folder

slash

logical append slash at end of path. Default is TRUE.

Value

character - path of the project directory/folder

Examples

## Not run: 
dir.project()

dir.project("data")

# following are equivalent
dir.project("data/excel/csv")
dir.project(c("data","excel","csv"))

## End(Not run)


JahNorr/orrr documentation built on Jan. 29, 2025, 5:11 p.m.