Compute edges and nodes of package directives and collaboration networks
## S3 method for class 'cranly_db' build_network(object, trace = FALSE, perspective = "package", ...)
logical. Print progress information? Default is
character. Should a
Other arguments passed in
The convention for a
cranly_network object with
perspective = "package" is that the direction of an edge is
from the package that is imported by, suggested by, enhances or is
a dependency of another package, to the latter package. The author
collaboration network is analyzed and visualized as undirected by
all methods in
A list of 2
data.frame objects with the
nodes of the network.
cran_db <- clean_CRAN_db() ## Build package directives network package_network <- build_network(object = cran_db, perspective = "package") head(package_network$edges) head(package_network$nodes) attr(package_network, "timestamp") class(package_network) ## Build author collaboration network author_network <- build_network(object = cran_db, perspective = "author") head(author_network$edges) head(author_network$nodes) attr(author_network, "timestamp") class(author_network)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.