Skip to content

Commit

Permalink
fix bug in R package dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
zym1010 committed Jan 22, 2016
1 parent e93224f commit 4824c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Docker/vr2014/vr2014_figure_script_R_install_packages.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# this is originally from http://stackoverflow.com/questions/4090169/elegant-way-to-check-for-missing-packages-and-install-them

list.of.packages <- c("ggplot2","Hmisc","plyr","ggthemes","R.matlab")
list.of.packages <- c("ggplot2","Hmisc","plyr","ggthemes","R.matlab","gdata")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages, repos='http://lib.stat.cmu.edu/R/CRAN/')
if(length(new.packages)) install.packages(new.packages, repos='http://lib.stat.cmu.edu/R/CRAN/')

0 comments on commit 4824c1b

Please sign in to comment.