title: When i wirte to file in R it always puts the values on a new line
body: <p>when i write my vector to a file it always places it on a new line. How can I stop this. see my code below. Each variable in x is written to a new line.</p>
  
  <pre><code>x&lt;- c(compname,mean(askspread),median(askspread),mean(q, na.rm=TRUE),median(q, na.rm=TRUE),max(q, na.rm=TRUE),timeticks,"\n")
  write(x, file = "/testdata.txt",append=TRUE,sep = ",")
  </code></pre>