Skip to contents

From a vector of R package names, identify their system dependencies.

Usage

get_pkgs_sysreqs(pkgs, os, os_release, verbose = FALSE)

Arguments

pkgs

a character vector of package names.

os

the operating system. See fetch_systems().

os_release

the version for os.

verbose

default FALSE. Whether to inform of missing packages.

Value

A tibble with 4 columns:

  • name: The system library name.

  • dependencies: The dependencies for name.

  • pre_installs: The recommended pre-installation commands.

  • post_installs: The recommended post-installation commands.

Examples

get_pkgs_sysreqs(
  c("rJava", "igraph", "rgdal", "spdep"),
  "ubuntu", "16.04"
)
#> # A tibble: 8 × 5
#>   pkg    name    dependencies pre_installs post_installs   
#>   <chr>  <chr>   <list>       <list>       <chr>           
#> 1 rJava  gnumake <chr [1]>    <chr [1]>    NA              
#> 2 rJava  java    <chr [1]>    <chr [1]>    R CMD javareconf
#> 3 igraph glpk    <chr [1]>    <chr [1]>    NA              
#> 4 igraph gmp     <chr [1]>    <chr [1]>    NA              
#> 5 igraph libxml2 <chr [1]>    <chr [1]>    NA              
#> 6 rgdal  gdal    <chr [2]>    <chr [3]>    NA              
#> 7 rgdal  proj    <chr [1]>    <chr [1]>    NA              
#> 8 spdep  NA      <chr [1]>    <chr [1]>    NA