The goal of licensr is to give you a list of all the licenses used by packages to which your project links.
You can install licensr from github with:
# install.packages("devtools")
devtools::install_github("mdlincoln/licensr")
library(licensr)
project_licenses()
#> # A tibble: 23 x 2
#> package license
#> <chr> <chr>
#> 1 utf8 Apache License (== 2.0) | file LICENSE
#> 2 mime GPL
#> 3 digest GPL (>= 2)
#> 4 fansi GPL (>= 2)
#> 5 withr GPL (>= 2)
#> 6 packrat GPL-2
#> 7 assertthat GPL-3
#> 8 covr GPL-3
#> 9 lazyeval GPL-3
#> 10 pillar GPL-3
#> # ... with 13 more rows