| sysreqs_install_plan {pkgdepends} | R Documentation |
Create an installation plan for system requirements
Description
This function uses new_pkg_installation_proposal() and its methods
to create an installation plan for one or more packages, and then print
their system requirements.
Usage
sysreqs_install_plan(refs, upgrade = TRUE, config = list())
Arguments
refs |
Packages to install. |
upgrade |
If |
config |
Configuration options. See
'Configuration'. If it does not include
|
Value
List with entries:
-
os: character string. Operating system. -
distribution: character string. Linux distribution,NAif the OS is not Linux. -
version: character string. Distribution version,NAis 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.
-
See Also
new_pkg_installation_proposal() to actually install
packages, and potentially system requirements.
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()
Examples
sysreqs_install_plan(
"tidyverse",
config = list(sysreqs_platform = "ubuntu-22.04")
)