Last active
April 11, 2024 03:43
-
-
Save EmilHvitfeldt/4fa629d12570a7f66b2041bff0dd3ad3 to your computer and use it in GitHub Desktop.
download all of tidymodels into a folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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