title: Temporarily disable a series of commands in R script during debugging
body: <p>I am trying to debug a lengthy script in R. Suppose I want to block out a long for-loop. Besides typing in pound-symbols ("#") before each line of code in the for-loop, or besides manually selecting which lines of code to run, is there another way to temporarily disable an entire for-loop (or a lengthy series of code) from running?</p>
  
  <p>For a simple example, I want to do something like the following:</p>
  
  <pre><code>code to be run;
  
  #[code to be disabled];
  #for(i in 1:5){;
  series of ~100 commands in for-loop;
  };
  
  other code to be run;
  </code></pre>
  
  <p>I want to be able to put a single "#" symbol at the front of the for-loop and have it disable the entire loop, but instead, I have to put a "#" symbol in each line of the lengthy for-loop. Is something like this possible?</p>
  
  <p>The problem is magnified when there are a large number of lengthy for-loops that need to be temporarily disabled. Simply putting a "#" symbol next to all of these lines proves unwieldy, as does individually selecting which lines to run.</p>