manager

0th

Percentile

Manage Packages from System Repositories

Talk to the system package manager to install/remove... packages from system repositories.

Usage
install_sys(pkgs)

remove_sys(pkgs)

discover()

Arguments
pkgs

character vector of names of packages.

Details

If R runs with root privileges (e.g., in a docker container), these functions talk directly to the system package manager. Regular users are also able to install/remove packages without any administrative permission via the accompanying D-Bus service if bspm is installed as a system package. If not, these methods fall back on using sudo to elevate permissions (or pkexec in GUIs such as RStudio) in interactive sessions. Note that, if you want to fall back to sudo in a non-interactive session, you need to set options(bspm.sudo=TRUE).

The discover method is only needed when e.g. a new repository is added that contains packages with different prefixes (for example, your system repositories may provide packages called r-cran-* and r-bioc-* and then you add a new repository that provides packages called r-github-*). Otherwise, it will not have any effect besides regenerating the internal configuration files.

Value

Functions install_sys and remove_sys return, invisibly, a character vector of the names of packages not available in the system.

See Also

integration

Aliases
  • manager
  • install_sys
  • remove_sys
  • discover
Examples
# NOT RUN {
# install 'units' and all its dependencies from the system repos
bspm::install_sys("units")

# now remove it
bspm::remove_sys("units")
# }
# NOT RUN {
# }
Documentation reproduced from package bspm, version 0.3.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.