bspm (version 0.3.3)

integration: Enable/Disable Bridge to System Package Manager

Description

Functions to enable or disable the integration of install_sys into install.packages. When enabled, packages are installed transparently from system repositories if available, and from the configured R repositories if not.

Usage

enable()

disable()

Arguments

Details

To enable bspm system-wide by default, include the following:

suppressMessages(bspm::enable())

into the Rprofile.site file. To enable it just for a particular user, move that line to the user's ~/.Rprofile instead.

See Also

manager

Examples

Run this code
# NOT RUN {
# install 'units' and all its dependencies from the system repos
bspm::enable()
install.packages("units")

# install packages again from CRAN
bspm::disable()
install.packages("errors")
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace