Returns the path to the currently active RStudio project.

getActiveProject()

Note

The getActiveProject function was added in version 0.99.854 of RStudio.

Value

Returns a single element character vector with the path of the currently active RStudio project. Returns NULL if no project is active.

Examples

if (FALSE) { rstudioapi::getActiveProject() }