Learn R Programming

renv (version 0.9.3)

activate: Activate a Project

Description

Use activate() to write the infrastructure needed to ensure that newly-launched R projects will load the project's private library on launch, alongside any other project-specific state recorded for the project.

Usage

activate(project = NULL)

Arguments

project

The project directory. If NULL, then the active project will be used. If no project is currently active, then the current working directory is used instead.

Value

The project directory, invisibly. Note that this function is normally called for its side effects.

See Also

Other renv: deactivate()

Examples

Run this code
# NOT RUN {
# activate the current project
renv::activate()

# activate a separate project
renv::activate("~/projects/analysis")

# }

Run the code above in your browser using DataLab