Hi fellow R-users, Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them. Thanks in advance, Greg __________________________________________________________________ Make your browsing faster, safer, and easier with the new Internet Explorer[[elided Yahoo spam]] com/ca/internetexplorer/ [[alternative HTML version deleted]]
Emacs with ESS would be one way to go. When editing a RNW file in ESS, you can use a key combination to go from RNW directly to PS or PDF, which is nice. Erik> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] > On Behalf Of Gregory Gentlemen > Sent: Tuesday, October 06, 2009 11:31 AM > To: r-help at r-project.org > Subject: [R] Text editors for Sweave (rnw) files > > Hi fellow R-users, > > Are there any text editors that recognize sweave (.rnw) files? I am > running Windows Vista and in the past I used Tinn-R for R files but it > (surprisingly) doesn't recognize rnw files and does not do any syntax > highlighting for them. > > Thanks in advance, > Greg > > > > __________________________________________________________________ > Make your browsing faster, safer, and easier with the new Internet > Explorer[[elided Yahoo spam]] > com/ca/internetexplorer/ > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.
vim/gvim does syntax highlighting of R, Sweave and latex. On Tue, Oct 6, 2009 at 12:30 PM, Gregory Gentlemen <gregory_gentlemen at yahoo.ca> wrote:> Hi fellow R-users, > > Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them. > > Thanks in advance, > Greg > > > > ? ? ?__________________________________________________________________ > Make your browsing faster, safer, and easier with the new Internet Explorer[[elided Yahoo spam]] > com/ca/internetexplorer/ > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
On 10/6/09, Gregory Gentlemen <gregory_gentlemen at yahoo.ca> wrote:> Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them. >Slightly off-topic reply. You can compose Sweave documents using LyX, in which case you would not need syntax highlighting. Liviu
Hi, On Oct 6, 2009, at 12:30 PM, Gregory Gentlemen wrote:> Hi fellow R-users, > > Are there any text editors that recognize sweave (.rnw) files? I am > running Windows Vista and in the past I used Tinn-R for R files but > it (surprisingly) doesn't recognize rnw files and does not do any > syntax highlighting for them.I don't run windows, but rumor has it that the e-texteditor is supposed to support TextMate bundles. So, since TextMate has bundles to support *.R, *.Rnw, *.Rd files, I would imagine the e editor could work, too: Editor: http://www.e-texteditor.com/ Getting more bundles: http://e-texteditor.com/wiki/index.php/Bundles#How_To_Get_More_Bundles You'll see several R bundles here (for TextMate, which should theoretically work for you) http://svn.textmate.org/trunk/Bundles/ I suspect this would be the one you want: http://svn.textmate.org/trunk/Bundles/R.tmbundle/ Hope that helps, -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact