Description Usage Arguments Details Value See Also Examples
Given the matrix as returned by available.packages
construct a graph,
of class igraph
of inter-package relations.
1 2 3 4 5 6 7 8 9 10 11 12 13 | pkgnet(object, ...)
## Default S3 method:
pkgnet(object, ...)
## S3 method for class 'character'
pkgnet(object, ap_args = NULL, ...)
## S3 method for class 'matrix'
pkgnet(object, enams = c("Depends", "Suggests", "Imports",
"Enhances", "LinkingTo"), vnams = c("Version", "Priority", "License",
"License_is_FOSS", "License_restricts_use", "OS_type", "Archs", "MD5sum",
"NeedsCompilation", "File", "Repository"), ...)
|
object |
a matrix as returned by |
... |
arguments passed to/from other methods |
ap_args |
|
enams |
character, names of columns of |
vnams |
character, names of columns of |
The resulting graph (object of class igraph
) is a multigraph: there
can be multiple relationships between any given pair of vertices. Different
types of relations can be disentagled using edge attribute called
type
. It stores the type of relation as provided with enams
argument.
Object of class igraph
.
available.packages
, graph.data.frame
1 2 3 4 5 6 | ## Not run:
a <- available.packages(contrib.url("http://cran.r-project.org", "source"))
g <- pkgnet(a)
summary(g)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.