title: R - Print list in file and recover list
body: <p>I have a list that looks like this:</p>
  
  <pre><code>&gt; indices
  $`48-168`
  $`48-168`$`1`
  [1]  1  2  3  4  5  6  7  8  9 10
  
  $`60-180`
  $`60-180`$`1`
  [1]  1  2  3  4  5  6  7  8  9 10
  
  $`180-300`
  $`180-300`$`1`
  [1] 1 2
  
  $`180-300`$`4`
  [1]  4  5  6  7  8  9 10
  
  $`180-300`$`3`
  [1] 3
  </code></pre>
  
  <p>I want to print it somehow in a file and then recover the same list later.</p>
  
  <p>I though printing the object given by <code>unlist(as.relistable(obj))</code> and use <code>relist</code> later but then I do not know how to recover the information from the file.</p>