### Install tidygraph from CRAN Source: https://github.com/thomasp85/tidygraph/blob/main/README.md Standard installation of the tidygraph package from CRAN. ```r install.packages('tidygraph') ``` -------------------------------- ### Install tidygraph using pak Source: https://github.com/thomasp85/tidygraph/blob/main/README.md Install the tidygraph package from GitHub using the pak package manager. Ensure 'pak' is installed first. ```r install.packages('pak') pak::pak('thomasp85/tidygraph') ``` -------------------------------- ### Install tidygraph Development Version Source: https://github.com/thomasp85/tidygraph/blob/main/README.md Installation of the development version of the tidygraph package from GitHub using the devtools package. ```r devtools::install_github('thomasp85/tidygraph') ``` -------------------------------- ### Activate Nodes and Calculate Centrality Source: https://github.com/thomasp85/tidygraph/blob/main/README.md This snippet demonstrates activating the nodes of a graph, calculating node degree centrality, and then activating edges to calculate edge betweenness centrality. The results are then arranged by centrality. ```r library(tidygraph) play_gnp(10, 0.5) %>% activate(nodes) %>% mutate(degree = centrality_degree()) %>% activate(edges) %>% mutate(centrality = centrality_edge_betweenness()) %>% arrange(centrality) ``` -------------------------------- ### R Package Dependency Error (numbat Devel) Source: https://github.com/thomasp85/tidygraph/blob/main/revdep/failures.md This R output indicates a dependency check failure for the 'numbat' package in its development version. It lists 'ggtree' and 'scistreer' as required but unavailable packages. ```R * using log directory ‘/tmp/workdir/numbat/new/numbat.Rcheck’ * using R version 4.1.1 (2021-08-10) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘numbat/DESCRIPTION’ ... OK * this is package ‘numbat’ version ‘1.3.2-1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... ERROR Packages required but not available: 'ggtree', 'scistreer' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. * DONE Status: 1 ERROR ``` -------------------------------- ### R Package Dependency Error (numbat CRAN) Source: https://github.com/thomasp85/tidygraph/blob/main/revdep/failures.md This R output shows a dependency check failure for the 'numbat' package from CRAN. Similar to the devel version, it flags 'ggtree' and 'scistreer' as missing dependencies. ```R * using log directory ‘/tmp/workdir/numbat/old/numbat.Rcheck’ * using R version 4.1.1 (2021-08-10) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-manual’ * checking for file ‘numbat/DESCRIPTION’ ... OK * this is package ‘numbat’ version ‘1.3.2-1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... ERROR Packages required but not available: 'ggtree', 'scistreer' See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. * DONE Status: 1 ERROR ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.