title: Check a value while for loop is running
body: <p>This might be a very stupid question but new to R so here it goes. I have a code with a for loop running (about 10,000 iterations). It takes a while for the loop to run to completion.</p>
  <p>I was wondering if there is a way to check a variable value while the for loop is running? For example, my code is somewhat as follows</p>
  <pre><code>for(id in 20000:29999){}
  </code></pre>
  <p>Can I check what is the value of 'id' at any time while running? That will give me some sense of how long the code is left to run</p>