title: How to toggle roxygen comments in Rstudio?
body: <p>Roxygen comments involve prefixing lines with <code>#'</code>.
  When writing and testing examples for functions, it's nice to be able to toggle the comments on and off. I could copy and paste the code back and forward to vim and remove or add those comments, but that's not very elegant.</p>
  
  <ul>
  <li>Is there any easy way to toggle roxygen comments in Rstudio?</li>
  <li>Alternatively, is there another way to efficiently run example R code that is commented out by roxygen comment characters?</li>
  </ul>
  
  <p><strong>Update</strong>: Thinking laterally, I suppose using <code>@example examples/foo.r</code> is an alternative way of avoiding having to use Roxygen comments for the actual example code (i.e., by sourcing the example from a file, i.e., <code>examples/foo.r</code>).</p>