title: Forcing garbage collection to run in R with the gc() command
body: <p>Periodically I program sloppily. Ok, I program sloppily all the time, but sometimes that catches up with me in the form of out of memory errors. I start exercising a little discipline in deleting objects with the <code>rm()</code> command and things get better. I see mixed messages online about whether I should explicitly call <code>gc()</code> after deleting large data objects. Some say that before R returns a memory error it will run <code>gc()</code> while others say that manually forcing <code>gc</code> is a good idea. </p>
  
  <p>Should I run <code>gc()</code> after deleting large objects in order to ensure maximum memory availability?</p>