Package 'rspm'

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-30 09:26:08 UTC
Source: CRAN

Help Index


rspm: 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, Amazon Linux), openSUSE / SLES 15.4-5, Debian 11-12, and Ubuntu LTS 20-22.

Author(s)

Iñaki Ucar

References

https://cran4linux.github.io/rspm/

See Also

manager, 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()

Details

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

suppressMessages(rspm::enable())

Value

No return value, called for side effects.

See Also

renv_init for renv projects.

Examples

## 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)

Manage System Requirements

Description

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.

Usage

install_sysreqs()

missing_sysreqs()

Value

install_sysreqs: No return value, called for side effects.

missing_sysreqs: A list of missing libraries, for debugging.

Examples

## 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)

Initialize an renv Project

Description

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.

Usage

renv_init(...)

Arguments

...

Arguments to be passed to renv::init().

Details

Note that, if renv::install or renv::update are called directly, then rspm::install_sysreqs() needs to be called manually.

Value

The project directory, invisibly. This function is called for its side effects.

Examples

## 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)