Skip to content

Instantly share code, notes, and snippets.

@EmilHvitfeldt
Last active April 11, 2024 03:43
Show Gist options
  • Save EmilHvitfeldt/4fa629d12570a7f66b2041bff0dd3ad3 to your computer and use it in GitHub Desktop.
Save EmilHvitfeldt/4fa629d12570a7f66b2041bff0dd3ad3 to your computer and use it in GitHub Desktop.
download all of tidymodels into a folder
library(gh)
dir <- "~/Desktop/all-of-tidymodels"
fs::dir_create(dir)
repos <- gh(
"GET /users/{username}/repos",
username = "tidymodels",
.per_page = 100
)
repos <- vapply(repos, "[[", "", "name")
excludes <- c(
".github",
"aml-training",
"cloudstart",
"model-implementation-principles",
"planning",
"tidymodels.org",
"tidymodels.org-legacy",
"TMwR",
"vetiver-redirect",
"workshops"
)
repos <- setdiff(repos, excludes)
paste0("tidymodels/", repos) |>
purrr::walk(usethis::create_from_github, destdir = dir, open = FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment