requireNamespace("htmltools")
library(data.table)
A dependency graph for all GitHub repos that use the rworkflows
GitHub Action.
Here is the code for creating the plot.
if(!require("echodeps"))remotes::install_github("RajLabMSSM/echodeps",
dependencies = TRUE)
res <- echodeps::dep_graph(pkg = "rworkflows",
method = "github",
shape = "hexagon",
exclude = c("neurogenomics_rworkflows",
"neurogenomics_r_workflows"),
node_size = "total_downloads",
reverse = TRUE,
save_path = here::here("reports","rworkflows_depgraph.html"))
dgc_out$metadata
saveRDS(res, here::here("reports","dgc_out.rds"))
cols <- c("stargazers_count",
"clones_count","clones_uniques","indirect_clones_uniques",
"views_count","views_uniques","indirect_views_uniques",
"total_downloads","indirect_total_downloads",
echogithub::r_repos_opts())
cols <- cols[cols %in% names(res$metadata)]
metadata_counts <- data.frame(
total=res$metadata[repo!="rworkflows",
lapply(.SD, sum, na.rm=TRUE),
.SDcols=cols] |> t()
)
metadata_counts
Hover over each node to show additional metadata.
htmltools::includeHTML("https://github.com/neurogenomics/rworkflows/raw/master/reports/rworkflows_depgraph.html")