sysreqs_check_installed {pkgdepends}R Documentation

Check if installed packages have all their system requirements

Description

sysreqs_check_installed() checks if the system requirements of all packages (or a subset of packages) are installed.

sysreqs_fix_installed() installs the missing system packages.

Usage

sysreqs_check_installed(packages = NULL, library = .libPaths()[1])
sysreqs_fix_installed(packages = NULL, library = .libPaths()[1])

Arguments

packages

If not NULL, then only these packages are checked. If a package in packages is not installed, then pkgdepends throws a warning.

library

Library or libraries to check.

Details

These functions use the sysreqs_platform configuration option, see Configuration. Set this if pkgdepends does not detect your platform correctly.

Value

Data frame with a custom print and format method, and a pkg_sysreqs_check_result class. Its columns are:

The data frame also have two attributes with additional data:

sysreqs_fix_packages() returns the same value, but invisibly.

See Also

Other system requirements functions: sysreqs_db_list(), sysreqs_db_match(), sysreqs_db_update(), sysreqs_install_plan(), sysreqs_is_supported(), sysreqs_list_system_packages(), sysreqs_platforms()

Examples


# This only works on supported platforms
sysreqs_check_installed()


[Package pkgdepends version 0.7.2 Index]