graph | R Documentation |
Generate a package dependency graph.
graph(
root = NULL,
leaf = NULL,
...,
suggests = FALSE,
enhances = FALSE,
resolver = NULL,
renderer = c("DiagrammeR", "visNetwork"),
attributes = list(),
project = NULL
)
root |
The top-most package dependencies of interest in the dependency graph. |
leaf |
The bottom-most package dependencies of interest in the dependency graph. |
... |
Unused arguments, reserved for future expansion. If any arguments
are matched to |
suggests |
Should suggested packages be included within the dependency graph? |
enhances |
Should enhanced packages be included within the dependency graph? |
resolver |
An R function accepting a package name, and returning the
contents of its |
renderer |
Which package should be used to render the resulting graph? |
attributes |
An R list of graphViz attributes, mapping node names to
attribute key-value pairs. For example, to ask graphViz to prefer orienting
the graph from left to right, you can use |
project |
The project directory. If |
## Not run:
# graph the relationship between devtools and rlang
graph(root = "devtools", leaf = "rlang")
# figure out why a project depends on 'askpass'
graph(leaf = "askpass")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.