rstudio_project_dir

0th

Percentile

Get the RStudio project directory

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.

Note

This only works when your IDE is RStudio. Otherwise an error is thrown.

Aliases
  • rstudio_project_dir
Examples
assertive.base::dont_stop(rstudio_project_dir())
Documentation reproduced from package pathological, version 0.1-1, License: Unlimited

Community examples

Looks like there are no examples yet.