Skip to content

Instantly share code, notes, and snippets.

View franzbischoff's full-sized avatar
I were here

Francisco Bischoff franzbischoff

I were here
View GitHub Profile
@crsh
crsh / plot_dependencies.R
Last active January 15, 2021 08:35
Plots the network of package dependencies
#' Plot network of package dependencies
#'
#' @param pkg package description, can be path or package name. See \code{\link[devtools]{as.package}} for
#' more information.
#'
#' @details The resulting plot visualizes the network of package dependencies. If you are trying to cut down
#' on package dependencies look for big red dots that represent a lot of upstream but few downstream
#' dependencies.
#' @import ggplot2
#' @export