changeset 74:47aa4f551c53 draft

Uploaded
author bornea
date Sat, 27 Aug 2016 23:57:34 -0400
parents 50391fdc229a
children 792056ff8ed5
files flatten_mzIdentML.R
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
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")