renv_enable: Enable renv for this project

View source: R/renv.R

renv_enableR Documentation

Enable renv for this project

Description

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()
}


framework documentation built on Feb. 18, 2026, 1:07 a.m.