Appendix 2: metaRbolomics dependencies network

Libraries and settings

## Loading required package: usethis
## 
## Attaching package: 'igraph'
## The following objects are masked from 'package:purrr':
## 
##     compose, simplify
## The following objects are masked from 'package:dplyr':
## 
##     as_data_frame, groups, union
## The following objects are masked from 'package:stats':
## 
##     decompose, spectrum
## The following object is masked from 'package:base':
## 
##     union
## 
## Attaching package: 'networkD3'
## The following object is masked from 'package:DT':
## 
##     JS

Get reverse dependencies

For GitHub and GitLab

The above devtools::revdep cannot read from GitHub/GitLab repositories. We have a helper function that downloads and parses the DESCRIPTION file from GitHub/GitLab. Since we cannot get reverse dependencies directly for GitHub/GitLab packages, those packages they are only used as additional reverse depedencies for the CRAN/BioC packages.

## Loading required package: desc
## 
## Attaching package: 'desc'
## The following object is masked from 'package:dplyr':
## 
##     desc
## Warning in readLines(file): incomplete final line found on '/tmp/Rtmpqdz49a/
## file6db787af'
## Warning in readLines(file): incomplete final line found on '/tmp/Rtmpqdz49a/
## file65a999ac7'

Building dependency network

In total, we were analysing 304 packages. For each package, this returns the set of packages in CRAN or BioC that depend on, import from or link to the package (i.e., its direct reverse dependencies) using the devtools::revdep() function. A few packages with the highest number of reverse dependencies have been excluded, as they would dominate the visualisation. It was not possible to detect reverse dependencies from other hosting places such as GitHub or GitLab.

From the total, 70 packages had at least one such reverse dependency.

Figure S1: Dependency network of R packages. Shown in blue are packages mentioned in the review. Edges connect to packages that depend on another package, as long as that is in CRAN or BioC. Green nodes correspond to packages in CRAN or BioC not covered in the review. Not shown are 1) infrastructure packages e.g. rJava, Rcpp 2) packages from the review without reverse dependencies and 3) data packages. Some packages from the review are not in current versions of CRAN or BioC. An interactive version of this figure is available from https://stanstrup.gitlab.io/metaRbolomics-book/appendix-2-metarbolomics-dependencies-network.html.

Notes

The source code for this page is on GitHub at gitlab.com/stanstrup/metaRbolomics-book

The HTML output is shown at https://stanstrup.gitlab.io/metaRbolomics-book/appendix-2-metarbolomics-dependencies-network.html

and https://stanstrup.gitlab.io/metaRbolomics-book/vn.html (Caveat: long rendering time, blank page without any visible progress)

This page was created with the following packages:

## R version 3.6.2 (2019-12-12)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Debian GNU/Linux 10 (buster)
## 
## Matrix products: default
## BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.5.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=C             
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
##  [1] desc_1.2.0          png_0.1-7           webshot2_0.0.0.9000
##  [4] chromote_0.0.0.9001 networkD3_0.4       visNetwork_2.0.9   
##  [7] igraph_1.2.4.2      devtools_2.2.1      usethis_1.5.1      
## [10] tikzDevice_0.12.3   purrr_0.3.3         kableExtra_1.1.0   
## [13] DT_0.11             dplyr_0.8.3         googlesheets_0.3.0 
## [16] readr_1.3.1         knitr_1.26         
## 
## loaded via a namespace (and not attached):
##  [1] httr_1.4.1          pkgload_1.0.2       jsonlite_1.6       
##  [4] viridisLite_0.3.0   shiny_1.4.0         assertthat_0.2.1   
##  [7] BiocManager_1.30.10 cellranger_1.1.0    yaml_2.2.0         
## [10] remotes_2.1.0       sessioninfo_1.1.1   pillar_1.4.3       
## [13] backports_1.1.5     glue_1.3.1          digest_0.6.23      
## [16] promises_1.1.0.9000 rvest_0.3.5         colorspace_1.4-1   
## [19] websocket_1.1.0     htmltools_0.4.0     httpuv_1.5.2       
## [22] pkgconfig_2.0.3     bookdown_0.16       xtable_1.8-4       
## [25] scales_1.1.0        webshot_0.5.2       processx_3.4.1     
## [28] later_1.0.0.9001    tibble_2.1.3        ellipsis_0.3.0     
## [31] withr_2.1.2         cli_2.0.0           magrittr_1.5       
## [34] crayon_1.3.4        mime_0.8            memoise_1.1.0      
## [37] evaluate_0.14       ps_1.3.0            fs_1.3.1           
## [40] fansi_0.4.0         xml2_1.2.2          pkgbuild_1.0.6     
## [43] tools_3.6.2         prettyunits_1.0.2   hms_0.5.2          
## [46] lifecycle_0.1.0     stringr_1.4.0       munsell_0.5.0      
## [49] callr_3.4.0         compiler_3.6.2      rlang_0.4.2        
## [52] grid_3.6.2          rstudioapi_0.10     htmlwidgets_1.5.1  
## [55] filehash_2.4-2      crosstalk_1.0.0     rmarkdown_2.0      
## [58] testthat_2.3.1      codetools_0.2-16    curl_4.3           
## [61] R6_2.4.1            fastmap_1.0.1       zeallot_0.1.0      
## [64] rprojroot_1.3-2     stringi_1.4.3       Rcpp_1.0.3         
## [67] vctrs_0.2.1         tidyselect_0.2.5    xfun_0.11