pkg_sysreqs | R Documentation |
Calculate system requirements of one of more packages
pkg_sysreqs(pkg, upgrade = TRUE, dependencies = NA, sysreqs_platform = NULL)
pkg |
Package names or package references. E.g.
See "Package sources" for more details. |
upgrade |
When When |
dependencies |
What kinds of dependencies to install. Most commonly one of the following values:
|
sysreqs_platform |
System requirements platform. If Set this option if to one of \evalplatforms() if \eval.packageName fails to correctly detect your platform or if you want to see the system requirements for a different platform. |
List with entries:
os
: character string. Operating system.
distribution
: character string. Linux distribution, NA
if the
OS is not Linux.
version
: character string. Distribution version, NA
is the OS
is not Linux.
pre_install
: character vector. Commands to run before the
installation of system packages.
install_scripts
: character vector. Commands to run to install the
system packages.
post_install
: character vector. Commands to run after the
installation of system packages.
packages
: data frame. Information about the system packages that
are needed. It has columns:
sysreq
: string, cross-platform name of the system requirement.
packages
: list column of character vectors. The names of the R
packages that have this system requirement.
pre_install
: list column of character vectors. Commands run
before the package installation for this system requirement.
system_packages
: list column of character vectors. Names of
system packages to install.
post_install
: list column of character vectors. Commands run
after the package installation for this system requirement.
Other package functions:
lib_status()
,
pak()
,
pkg_deps()
,
pkg_deps_tree()
,
pkg_download()
,
pkg_install()
,
pkg_remove()
,
pkg_status()
Other system requirements functions:
sysreqs_check_installed()
,
sysreqs_db_list()
,
sysreqs_db_match()
,
sysreqs_db_update()
,
sysreqs_is_supported()
,
sysreqs_list_system_packages()
,
sysreqs_platforms()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.