title: RStudio console stuck - how to reset?
body: <p>Using Version 0.98.11013. Say I'm testing the following code in my script:</p>
  
  <pre><code>for (num in 1:5)
  {
      # Print numbers from 1 to the loop variable
      print(1:num)
  }
  </code></pre>
  
  <p>As I step over each line (using CTRL+R), I get the following output in the Console:</p>
  
  <pre><code>&gt; for (num in 1:5)
  + {
  + # Print numbers from 1 to the loop variable
  + print(1:num)
  + }
  [1] 1
  [1] 1 2
  [1] 1 2 3
  [1] 1 2 3 4
  [1] 1 2 3 4 5
  &gt; 
  </code></pre>
  
  <p>Now, say I've made an error in my code and forgotten the closing brace <code>}</code>:</p>
  
  <pre><code>for (num in 1:5)
  {
      # Print numbers from 1 to the loop variable
      print(1:num)
  
  randomArray &lt;- c(1:10)
  # ...and the next line of the R script
  </code></pre>
  
  <p>Now the Console shows a <code>+</code> symbol for every line because it is looking for a closing brace. Someone new to R or RStudio may not be aware of this. Nothing I do gets output working again except closing and re-opening RStudio.</p>
  
  <p>Is there a way to force the RStudio Console (or is it the R interpreter?) to "reset"?</p>