View source: R/pkg_dep_graph.R
plot_deps_graph | R Documentation |
Plot a package's dependency graph, coloring each node by the number of packages it depends on.
plot_deps_graph(pkg, dep_type = c("depends", "imports", "linkingto"))
pkg |
package string passed to |
dep_type |
type of dependencies to look up. Valid values are |
If you include "suggests"
among the dependency types to look up, be
aware that suggests can be circular / cyclic. If this is detected, the node coloring
will be turned off.
a ggplot
plot_deps_graph("dplyr") # dplyr has several dependencies
plot_deps_graph("rlang") # rlang has only one
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.