Skip to content

Instantly share code, notes, and snippets.

@wckdouglas
Created August 11, 2015 16:36
Show Gist options
  • Save wckdouglas/c1d067ce64c4c09af20b to your computer and use it in GitHub Desktop.
Save wckdouglas/c1d067ce64c4c09af20b to your computer and use it in GitHub Desktop.
#!/usr/bin/env Rscript
source("http://bioconductor.org/biocLite.R")
packages <- c('data.table','readr',
'dplyr','plyr',
'ggplot2','cowplot',
'caret','RMySQL',
'tidyr','stringr',
'pheatmap','Rcpp')
biocPackages <- c('DESeq','DESeq2',
'Rsamtools','biomaRt')
installation <- function(x){
install.packages(x,dependencies = TRUE)
}
biocInstallation <- function(x){
biocLite(x)
}
a <- lapply(packages,installation)
b <- lapply(biocPackages,biocInstallation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment