Learn R Programming

renv (version 1.0.7)

project: Retrieve the active project

Description

Retrieve the path to the active project (if any).

Usage

project(default = NULL)

Value

The active project directory, as a length-one character vector.

Arguments

default

The value to return when no project is currently active. Defaults to NULL.

Examples

Run this code
if (FALSE) {

# get the currently-active renv project
renv::project()

}

Run the code above in your browser using DataLab