framework docs
Packages

renv_enable()

Enable renv for this project

Initializes renv integration for the current Framework project. This:

  • Creates .framework_renv_enabled marker file
  • Initializes renv if not already initialized
  • Syncs packages from settings.yml to renv.lock
  • Updates .gitignore to exclude renv cache

Usage

renv_enable(sync = TRUE)

Arguments

sync
Logical; if TRUE (default), sync packages from settings.yml

Value

Invisibly returns TRUE on success

Examples

if (FALSE) {
renv_enable()
}