Last active
August 29, 2015 14:21
-
-
Save sjkiss/74974c26c98a39fb262b to your computer and use it in GitHub Desktop.
Install key packages for LSIRM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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