Tomaz Kastrun uses the igraph package to graph package dependencies in R:
With importing package tools, we get many useful functions to find additional information on packages.
Function package.dependencies() parses and check dependencies of a package in current environment. Function package_dependencies() (with underscore and not dot) will find all dependent and reverse dependent packages.
This probably tilts more toward “fun” than “practical,” but this will let you see the full set of dependencies for a package if, for example, you need to grab all of these packages for upgrading an offline instance.