| integration {CoprManager} | R Documentation |
Functions to enable or disable the integration of install_copr
into install.packages. When enabled, packages are installed
transparently from system repositories if available, and from the configured
R repositories if not.
enable() disable()
To enable CoprManager system-wide by default, include the following:
suppressMessages(CoprManager::enable())
into the Rprofile.site file. To enable it just for a particular user,
move that line to the user's ~/.Rprofile instead.
## Not run:
# install 'units' and all its dependencies from the system repos
CoprManager::enable()
install.packages("units")
# install packages again from CRAN
CoprManager::disable()
install.packages("errors")
## End(Not run)