Hi Annie, The error is in the R script...you start reading with Args[1] but instead you should start with Args[5] etc. because (I believe) that R --slave --vanilla --args count as [1] [2] [3] [4]
Therefore, Args[5] it's the first argument you use...try that and let me know!! I am trying something similar for one of my scripts Francesco -- View this message in context: http://r.789695.n4.nabble.com/Passing-parameters-tp3762480p4034548.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.