sysreqs_check_installed | R Documentation |
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.
sysreqs_check_installed(packages = NULL, library = .libPaths()[1])
sysreqs_fix_installed(packages = NULL, library = .libPaths()[1])
packages |
If not |
library |
Library or libraries to check. |
These functions use the sysreqs_platform
configuration option,
see \evalman_config_link("Configuration"). Set this if
pak does not detect your platform correctly.
Data frame with a custom print and format method, and a
pkg_sysreqs_check_result
class. Its columns are:
system_package
: string, name of the required system package.
installed
: logical, whether the system package is correctly
installed.
packages
: list column of character vectors. The names of the
installed R packages that need this system package.
pre_install
: list column of character vectors. Commands to run
before the installation of the the system package.
post_install
: list column of character vectors. Commands to run
after the installation of the system package.
The data frame also have two attributes with additional data:
sysreqs_records
: the raw system requirements records, and
system_packages
: the list of the installed system packages.
sysreqs_fix_packages()
returns the same value, but invisibly.
Other system requirements functions:
pkg_sysreqs()
,
sysreqs_db_list()
,
sysreqs_db_match()
,
sysreqs_db_update()
,
sysreqs_is_supported()
,
sysreqs_list_system_packages()
,
sysreqs_platforms()
# This only works on supported platforms
sysreqs_check_installed()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.