title: pass a range of values in bash as vector in Rscript
body: <p>I want to pass a range of numbers from bash as argument of a R script.</p>
  
  <p>As an example I made the following R script, which I will call "myscript.R":</p>
  
  <pre><code>args &lt;- commandArgs(TRUE)
  test&lt;-as.numeric(unlist(args[1]))
  write.csv(as.matrix(test),file="buu.csv",,row.names=FALSE,quote=FALSE)
  </code></pre>
  
  <p>Then I run it in bash using as argument a range of values:</p>
  
  <pre><code>Rscript myscript.R seq 9000 50 14000
  </code></pre>
  
  <p>However it did not work. Do you have any suggestion?</p>