# devtools::install_github("ropenscilabs/pkginspector")
library(pkginspector)
pkg_name <- "skimr"
dir <- "~/Downloads" # note: this will be changed to automatically download package into a temp dir
vis_package(dir, pkg_name)
Hover or click a function in the network above to see all functions that depend on it. The total number of dependent nodes is listed in the table below as “dependents”
Zoom in or out; drag nodes around to tweak layout
We use functionMap::map_r_package() to determine function dependences. It is not picking up functions called inside purrr::map functions. If you find other problems, let us know.
Source code for vis_package(), which uses vizNetwork to draw the network, is here
Feedback welcome! jtr13@columbia.edu
library(dplyr)
path <- file.path(dir, pkg_name)
df <- rev_fn_summary(path = path) %>%
select(f_args, dependents) %>%
arrange(desc(dependents))
DT::datatable(df)