pathological (version 0.1-1)

rstudio_project_dir: Get the RStudio project directory

Description

Gets the current RStudio project directory.

Usage

rstudio_project_dir(sep = c("/", "\\"))

Arguments

sep
String separator between directory levels in the output.

Value

A string giving the path to the current RStudio project directory, or character vector with length zero if you are running RStudio without a project open.

Examples

Run this code
assertive.base::dont_stop(rstudio_project_dir())

Run the code above in your browser using DataCamp Workspace