title: Save and reload a 'list' object in R
body: <p>I am trying to save a list object that I manually created with some efforts into something in <code>list</code> format that I can reference back rather quickly. 
  The saved object should be able to be loaded back as a <code>list</code> not <code>df</code> or anything.</p>
  
  <p>Here's part of my list object down below:</p>
  
  <pre><code>citations &lt;- list(
  as.integer(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 111)),
  as.integer(c(2, 3, 4, 5, 6, 7, 8, 9, 10, 111)),
  as.integer(c(1, 3, 4, 5, 6, 7, 8, 9, 10, 111)),
  as.integer(111),
  as.integer(111),
  as.integer(111),
  as.integer(111),
  as.integer(111),
  as.integer(111),
  as.integer(111),
  as.integer(111),
  as.integer(6),
  integer(0),
  as.integer(c(14, 15, 16, 17, 18, 19, 20, 21, 22, 23))
  )
  </code></pre>
  
  <p>I have referenced <a href="https://stackoverflow.com/questions/31893844/how-can-i-save-a-list-to-a-file-and-read-it-in-again-in-r">this thread</a> and a much earlier one on <a href="http://r.789695.n4.nabble.com/Save-amp-reload-list-objects-td4639397.html" rel="nofollow noreferrer">nabble</a>, they suggested simply using <code>save</code> and <code>load</code>, but I just couldn't figure out how this works, whenever I applied the <code>save()</code> function on the <code>list</code> object and specified an R object for it, I always got an error message.</p>
  
  <pre><code>save(citations, "/~citations.Rdata")
  Error in save(citations, "~/citations.Rdata") : object ‘~/citations.Rdata’ not found
  </code></pre>
  
  <p>Just don't know if other function calls are needed.    </p>