activate: Activate a Project

Description Usage Arguments Value See Also Examples

View source: R/activate.R

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

1

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.

profile

The profile to be activated. When NULL, the default profile is activated instead. See vignette("profiles", package = "renv") for more information.

Value

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

See Also

Other renv: deactivate()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# activate the current project
renv::activate()

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


## End(Not run)

wnattt/renv documentation built on Dec. 23, 2021, 5:19 p.m.