title: R: Print list to a text file
body: <p>I have in R a list like this:</p>
  
  <pre><code>&gt; print(head(mylist,2))
  [[1]]
  [1] 234984  10354  41175 932711 426928
  
  [[2]]
  [1] 1693237   13462
  </code></pre>
  
  <p>Each element of the list has different number of its elements.</p>
  
  <p>I would like to print this list to a text file like this:</p>
  
  <pre><code>mylist.txt
  234984  10354  41175 932711 426928
  1693237   13462
  </code></pre>
  
  <p>I know that I can use sink(), but it prints names of elements [[x]], [y] and I want to avoid it. Also because of different number of elements in each element of the list it is not possible to use write() or write.table().</p>