Title: | 'RStudio' Package Manager |
---|---|
Description: | Enables binary package installations on Linux distributions. Provides access to 'RStudio' public repositories at <https://packagemanager.posit.co>, and transparent management of system requirements without administrative privileges. Currently supported distributions are 'CentOS' / 'RHEL' 7-9, and several 'RHEL' derivatives ('Rocky Linux', 'AlmaLinux', 'Oracle Linux', and 'Amazon Linux'), 'openSUSE' / 'SLES' 15.4-5, 'Debian' 11-12, and 'Ubuntu' LTS 20-22. |
Authors: | Iñaki Ucar [aut, cph, cre] , R Core Team [aut, cph] |
Maintainer: | Iñaki Ucar <[email protected]> |
License: | GPL-2 | GPL-3 | MIT + file LICENSE |
Version: | 0.6.1 |
Built: | 2024-10-29 12:23:03 UTC |
Source: | https://github.com/cran4linux/rspm |
Enables binary package installations on Linux distributions. Provides access to RStudio public repositories at https://packagemanager.posit.co, and transparent management of system requirements without administrative privileges. Currently supported distributions are CentOS / RHEL 7-9, and several RHEL derivatives (Rocky Linux, AlmaLinux, Oracle Linux, Amazon Linux), openSUSE / SLES 15.4-5, Debian 11-12, and Ubuntu LTS 20-22.
Iñaki Ucar
https://cran4linux.github.io/rspm/
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()
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)
## 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)
Detect, install and configure system requirements. This function is
automatically called when the package is enabled via enable
.
It can also be called manually at any time to update the system requirements.
install_sysreqs() missing_sysreqs()
install_sysreqs() missing_sysreqs()
install_sysreqs
: No return value, called for side effects.
missing_sysreqs
: A list of missing libraries, for debugging.
## Not run: # install 'units' without enabling the integration install.packages("units") # then trigger the installation of system requirements manually rspm::install_sysreqs() ## End(Not run)
## Not run: # install 'units' without enabling the integration install.packages("units") # then trigger the installation of system requirements manually rspm::install_sysreqs() ## End(Not run)
Substitutes renv::init()
to initialize a new renv project with
rspm enabled. This function sets the appropriate infrastructure to
activate the integration. Then, packages can be installed normally via
install.packages
and update.packages
.
renv_init(...)
renv_init(...)
... |
Arguments to be passed to |
Note that, if renv::install
or renv::update
are called
directly, then rspm::install_sysreqs()
needs to be called manually.
The project directory, invisibly. This function is called for its side effects.
## Not run: # initialize a new project (with an empty R library) rspm::renv_init() # install 'units' and all its dependencies from the system repos install.packages("units") # install a specific version and install dependencies manually renv::install("[email protected]") rspm::install_sysreqs() ## End(Not run)
## Not run: # initialize a new project (with an empty R library) rspm::renv_init() # install 'units' and all its dependencies from the system repos install.packages("units") # install a specific version and install dependencies manually renv::install("[email protected]") rspm::install_sysreqs() ## End(Not run)