Mercurial > repos > bornea > saint_preprocessing
diff flatten_mzIdentML.R @ 74:47aa4f551c53 draft
Uploaded
author | bornea |
---|---|
date | Sat, 27 Aug 2016 23:57:34 -0400 |
parents | d8cc862e6412 |
children |
line wrap: on
line diff
--- a/flatten_mzIdentML.R Sat Aug 27 23:37:08 2016 -0400 +++ b/flatten_mzIdentML.R Sat Aug 27 23:57:34 2016 -0400 @@ -1,4 +1,17 @@ #! /usr/bin/Rscript +ins_check_run <- function() { + if ("mzID" %in% rownames(installed.packages())){} + else { + source("https://bioconductor.org/biocLite.R") + biocLite('mzID') + } + if ('dplyr' %in% rownames(installed.packages())){} + else { + install.packages('dplyr', repos='http://cran.us.r-project.org') + } +} + +ins_check_run() args <- commandArgs(trailingOnly = TRUE) #source("https://bioconductor.org/biocLite.R") #biocLite("mzID")