-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Step 1: find out if we can remove graphs without breaking downstream.
R code to construct the query:
# Load necessary package
library(tools)
# Define the datasets from igraphdata
igraph_datasets <- c("enron", "karate", "yeast", "ukfaculty", "kite",
"macaco", "koenigsberg", "usairports", "dolphins",
"immuno", "foodweb", "polblogs")
# Identify reverse dependencies of igraphdata
igraphdata_dependencies <- package_dependencies("igraphdata", reverse = TRUE, which = "all")
igraphdata_packages <- unique(unlist(igraphdata_dependencies))
# Construct the GitHub search query using regex search
dataset_query <- paste0("/", paste(igraph_datasets, collapse = "|"), "/")
repo_query <- paste(paste0("repo:cran/", igraphdata_packages), collapse = " OR ")
github_query <- paste0("org:cran (", repo_query, ") ", dataset_query)
# Print the query
cat("GitHub Search Query:\n", github_query, "\n")
# Check for length limit
max_query_length <- 2048 # GitHub's max URL length
if (nchar(github_query) > max_query_length) {
cat("\nWARNING: Query exceeds GitHub's search limit. Consider splitting it.\n")
}
Step 2: Evaluate next steps
TBD.
Metadata
Metadata
Assignees
Labels
No labels