Tuesday, July 26, 2016

List user installed R packages

It's handy having a list of packages you've installed on hand.

This script will output the package name and version number:

# generates the list of user installed packages and prints out the name and version number
user_packages <- as.data.frame(installed.packages(priority="NA"), stringsAsFactors=F)
print(unique(user_packages[c('Package', 'Version')]), row.names=F)