plot_deps_graph: Plot dependency graph

View source: R/pkg_dep_graph.R

plot_deps_graphR Documentation

Plot dependency graph

Description

Plot a package's dependency graph, coloring each node by the number of packages it depends on.

Usage

plot_deps_graph(pkg, dep_type = c("depends", "imports", "linkingto"))

Arguments

pkg

package string passed to pak::pkg_dep

dep_type

type of dependencies to look up. Valid values are c("depends", "imports", "suggests")

Details

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.

Value

a ggplot

Examples

plot_deps_graph("dplyr") # dplyr has several dependencies
plot_deps_graph("rlang") # rlang has only one


andrewGhazi/geryon documentation built on April 14, 2025, 3:51 p.m.