Learn R Programming

rspm (version 0.6.0)

integration: 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()

Arguments

Value

No return value, called for side effects.

Details

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

suppressMessages(rspm::enable())

See Also

renv_init for renv projects.

Examples

Run this code
if (FALSE) {
# 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")
}

Run the code above in your browser using DataLab