Skip to content

Instantly share code, notes, and snippets.

@sjkiss
Last active August 29, 2015 14:21
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 sjkiss/74974c26c98a39fb262b to your computer and use it in GitHub Desktop.
Save sjkiss/74974c26c98a39fb262b to your computer and use it in GitHub Desktop.
Install key packages for LSIRM
#Packages to be installed
to.install<-c('car', 'plotrix', 'psych')
#Determine Uninstalled Packages
new.packages <- to.install[!(to.install %in% installed.packages()[,"Package"])]
#If the number of uninstalled packages is non-zero, install uninstalled packages
if(length(new.packages)) install.packages(new.packages)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment