integration | R Documentation |
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.
enable()
disable()
To enable rspm permanently, include the following into your
.Rprofile
:
suppressMessages(rspm::enable())
No return value, called for side effects.
renv_init
for renv projects.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.