title: Output a sequence of vector element using cat
body: <p>I need to get certain output statement using the cat function in R. I wrote the following code </p>
  
  <pre><code>it &lt;-1
  w &lt;- c(1,2,3)
  cat("\nUsing the eq(s)",w,"the iter is:",it,"\n",sep=",")
  </code></pre>
  
  <p>which gives me the following out put</p>
  
  <pre><code>Using the eq(s),1,2,3,the iter is:,1,
  </code></pre>
  
  <p>I need to get this output if you can help please </p>
  
  <pre><code>Using the eq(s) 1, 2 and 3, the iter is: 1
  </code></pre>
  
  <p>Thanks </p>