renv_install_local: Build a local package and install it into an renv project

View source: R/renv.R

renv_install_localR Documentation

Build a local package and install it into an renv project

Description

[Experimental]

This is a wrapper around pkgbuild::build() and renv::install() to more easily make local packages available within renv projects.

The following steps are performed:

  1. Building the package found at argument path via pkgbuild::build().

  2. Moving the built source into the renv cache. The cache location is determined by Sys.getenv("RENV_PATHS_LOCAL").

  3. Installing the package from the cache location via renv::install().

Usage

renv_install_local(path = ".", quiet = FALSE, ...)

Arguments

path

⁠[character]⁠
The path to the package which should be built and installed.

quiet

⁠[logical]⁠
Whether to suppress console output.

...


Passed down to pkgbuild::build().


cynkra/cynkrathis documentation built on June 14, 2025, 4:26 p.m.