Skip to content

Instantly share code, notes, and snippets.

@slopp
Created April 23, 2020 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slopp/c472183dadb0af2f268323c7cd2e3534 to your computer and use it in GitHub Desktop.
Save slopp/c472183dadb0af2f268323c7cd2e3534 to your computer and use it in GitHub Desktop.
Get packages by license
library(dplyr)
library(tibble)
REPO <- "http://cran.rstudio.com"
LICENSE <- "AGPL"
p <- available.packages(repos = REPO)
p_tbl <- as_tibble(p)
p_tbl %>%
filter(License == !!LICENSE) %>%
pull(Package)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment