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/89d51b918ee38a16c989b18f36ff4666 to your computer and use it in GitHub Desktop.
Save slopp/89d51b918ee38a16c989b18f36ff4666 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