installed.packages

installed.packages()
Retrieve information about packages that have already been installed. For instance, learn the current version, what packages rely on other packages, or the license a package is available under.

Example. I query the packages installed on my computer, looked at the information available for each package, then query the license that the maps package is released under.
> 
> ip <- installed.packages()
> colnames(ip)
 [1] "Package"   "LibPath"   "Version"   "Priority" 
 [5] "Depends"   "Imports"   "LinkingTo" "Suggests" 
 [9] "Enhances"  "OS_type"   "License"   "Built"    
> 
> ip["maps","License"]
[1] "GPL-2"
> 

Leave a Reply