title: Rstudio - keeping code folded when run / file closed
body: <p>This question appears to be mentioned briefly here - <a href="https://stackoverflow.com/questions/30997739/permanent-code-folding-in-rstudio">Permanent Code Folding in RStudio</a> - however for windows and a bit outdated. I am on OS X with RStudio version 0.99.891.</p>
  
  <p>I use command-alt-L to fold code in R-studio, and would prefer if the code remains folded when I both (1) save/close/reopen the file, and (2) run the folded code. Currently, doing both (1) and (2) unfolds the code, which is slightly frustrating.</p>
  
  <p>Anyone know if this is avoidable, or something I should learn to live with?</p>
  
  <p>Thanks! </p>