pkg_deps_tree: Draw the dependency tree of a package

View source: R/package.R

pkg_deps_treeR Documentation

Draw the dependency tree of a package

Description

Draw the dependency tree of a package

Usage

pkg_deps_tree(pkg, upgrade = TRUE, dependencies = NA)

Arguments

pkg

Package names or package references. E.g.

  • ggplot2: package from CRAN, Bioconductor or a CRAN-like repository in general,

  • tidyverse/ggplot2: package from GitHub,

  • tidyverse/ggplot2@v3.4.0: package from GitHub tag or branch,

  • ⁠https://examples.com/.../ggplot2_3.3.6.tar.gz⁠: package from URL,

  • .: package in the current working directory.

See "Package sources" for more details.

upgrade

Whether to use the most recent available package versions.

dependencies

What kinds of dependencies to install. Most commonly one of the following values:

  • NA: only required (hard) dependencies,

  • TRUE: required dependencies plus optional and development dependencies,

  • FALSE: do not install any dependencies. (You might end up with a non-working package, and/or the installation might fail.) See Package dependency types for other possible values and more information about package dependencies.

Value

The same data frame as pkg_deps(), invisibly.

Examples

pkg_deps_tree("dplyr")
#> dplyr 1.0.10                                                           
#> ├─generics 0.1.3                                                       
#> ├─glue 1.6.2                                                           
#> ├─lifecycle 1.0.3                                                      
#> │ ├─cli 3.4.1                                                          
#> │ ├─glue                                                                
#> │ └─rlang 1.0.6                                                        
#> ├─magrittr 2.0.3                                                       
#> ├─R6 2.5.1                                                             
#> ├─rlang                                                                 
#> ├─tibble 3.1.8                                                         
#> │ ├─fansi 1.0.3                                                        
#> │ ├─lifecycle                                                           
#> │ ├─magrittr                                                            
#> │ ├─pillar 1.8.1                                                       
#> │ │ ├─cli                                                               
#> │ │ ├─fansi                                                             
#> │ │ ├─glue                                                              
#> │ │ ├─lifecycle                                                         
#> │ │ ├─rlang                                                             
#> │ │ ├─utf8 1.2.2                                                       
#> │ │ └─vctrs 0.5.1                                                      
#> │ │   ├─cli                                                             
#> │ │   ├─glue                                                            
#> │ │   ├─lifecycle                                                       
#> │ │   └─rlang                                                           
#> │ ├─pkgconfig 2.0.3                                                    
#> │ ├─rlang                                                               
#> │ └─vctrs                                                               
#> ├─tidyselect 1.2.0                                                     
#> │ ├─cli                                                                 
#> │ ├─glue                                                                
#> │ ├─lifecycle                                                           
#> │ ├─rlang                                                               
#> │ ├─vctrs                                                               
#> │ └─withr 2.5.0                                                        
#> ├─vctrs                                                                 
#> └─pillar                                                                
#>                                                                         
#> Key:   new                                                             
pkg_deps_tree("r-lib/usethis")
#> r-lib/usethis 2.1.6.9000 ✨👷🏼🔧                                           
#> ├─cli 3.4.1                                                            
#> ├─clipr 0.8.0                                                          
#> ├─crayon 1.5.2                                                         
#> ├─curl 4.3.3                                                           
#> ├─desc 1.4.2                                                           
#> │ ├─cli                                                                 
#> │ ├─R6 2.5.1                                                           
#> │ └─rprojroot 2.0.3                                                    
#> ├─fs 1.5.2                                                             
#> ├─gert 1.9.2 ✨ ⬇ (1.91 MB)                                              
#> │ ├─askpass 1.1                                                        
#> │ │ └─sys 3.4.1                                                        
#> │ ├─credentials 1.3.2 ✨ ⬇ (170.15 kB)                                   
#> │ │ ├─openssl 2.0.5                                                    
#> │ │ │ └─askpass                                                         
#> │ │ ├─sys                                                               
#> │ │ ├─curl                                                              
#> │ │ ├─jsonlite 1.8.4                                                   
#> │ │ └─askpass                                                           
#> │ ├─openssl                                                             
#> │ ├─rstudioapi 0.14                                                    
#> │ ├─sys                                                                 
#> │ └─zip 2.2.2                                                          
#> ├─gh 1.3.1 ✨ ⬇ (95.20 kB)                                               
#> │ ├─cli                                                                 
#> │ ├─gitcreds 0.1.2 ✨ ⬇ (95.59 kB)                                       
#> │ ├─httr 1.4.4                                                         
#> │ │ ├─curl                                                              
#> │ │ ├─jsonlite                                                          
#> │ │ ├─mime 0.12                                                        
#> │ │ ├─openssl                                                           
#> │ │ └─R6                                                                
#> │ ├─ini 0.3.1 ✨ ⬇ (13.13 kB)                                            
#> │ └─jsonlite                                                            
#> ├─glue 1.6.2                                                           
#> ├─jsonlite                                                              
#> ├─lifecycle 1.0.3                                                      
#> │ ├─cli                                                                 
#> │ ├─glue                                                                
#> │ └─rlang 1.0.6                                                        
#> ├─purrr 0.3.5                                                          
#> │ ├─magrittr 2.0.3                                                     
#> │ └─rlang                                                               
#> ├─rappdirs 0.3.3                                                       
#> ├─rlang                                                                 
#> ├─rprojroot                                                             
#> ├─rstudioapi                                                            
#> ├─whisker 0.4.1 ✨ ⬇ (65.36 kB)                                          
#> ├─withr 2.5.0                                                          
#> └─yaml 2.3.6                                                           
#>                                                                         
#> Key:   new |  download | 👷🏼 build | 🔧 compile                        

See Also

Other package functions: lib_status(), pak(), pkg_deps(), pkg_download(), pkg_install(), pkg_remove(), pkg_status(), pkg_sysreqs()


r-lib/pak documentation built on April 21, 2024, 10:38 a.m.