integration: Enable/Disable RStudio Package Manager

integrationR Documentation

Enable/Disable RStudio Package Manager

Description

Functions to enable or disable RSPM repos as well as the integration of install_sysreqs into install.packages and update.packages. When enabled, binary packages are installed from RSPM if available, and system requirements are transparently resolved and installed without root privileges.

Usage

enable()

disable()

Details

To enable rspm permanently, include the following into your .Rprofile:

suppressMessages(rspm::enable())

Value

No return value, called for side effects.

See Also

renv_init for renv projects.

Examples

## Not run: 
# install 'units' and all its dependencies from the system repos
rspm::enable()
install.packages("units")

# install packages again from CRAN
rspm::disable()
install.packages("errors")

## End(Not run)


rspm documentation built on Oct. 29, 2024, 5:07 p.m.