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.
activate(project = NULL, version = NULL)
The project directory. If NULL
, then the active
project will be used. If no project has been specifically activated,
the current working directory is used.
The version of renv
to associate with this project. When
NULL
, the version recorded in the project's lockfile will be used
(if any); otherwise, the version of renv
currently loaded in the R
session will be used instead.
Other renv: deactivate