-
Notifications
You must be signed in to change notification settings - Fork 0
lindsayevanslee/get_licenses
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
library(tidyverse) library(openxlsx) #store package dependencies (currently only included in Imports and Suggests) pkgs <- packageDescription("YOURPACKAGE")[c("Imports", "Suggests")] %>% map(~ flatten_chr(str_split(., ",\n"))) %>% flatten_chr() #make list of licenses license_types <- map_chr(pkgs, ~ packageDescription(., fields = "License")) %>% set_names(pkgs) %>% unique() license_files <- map(pkgs, ~ readLines(system.file("LICENSE", package = . ))) %>% set_names(pkgs) #print license_files write.xlsx(license_files, file = "license_files.xlsx")
About
No description, website, or topics provided.
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published