rstudio_project_dir: Get the RStudio project directory

Description Usage Arguments Value Note Examples

View source: R/rstudio.R

Description

Gets the current RStudio project directory.

Usage

1
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.

Examples

1
assertive.base::dont_stop(rstudio_project_dir())


pathological documentation built on May 19, 2017, 11:03 a.m.
Search within the pathological package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.