[R] code folding for both TeX sections and R code chunks in .rnw file

Shi, Tao shidaxia at yahoo.com
Fri Sep 13 20:34:41 CEST 2013


Hi list,

Sorry, this is not a question directly for R, rather for R code editor.  I'm posting it here to capture wider audience.

The problem I'm facing is that as sometimes my .rnw file gets bigger and bigger, navigating through it becomes an issue.  Scrolling back-n-forth or remembering the line number of the section you want to go to are just not efficient.  It would be nice for the text editor to show a "table of content" tree NOT ONLY for .tex section/subsection headers BUT ALSO for R code chunks.  It's kind of like what WinEdt is doing for .tex file but also adding R code chunks into the tree.  (please see the first figure on   http://www.winedt.com/snap.html ).  Rstudio does pretty good job on folding R code, but not the .tex section headers.  


What are your best solutions?

Thanks!

Tao




More information about the R-help mailing list