Evaluating code in .Rnw (R/tex) buffers

Stephen Eglen eglen at pcg.wustl.edu
Tue Mar 26 21:35:10 CET 2002


hi,

 > Yes, I've used it for a while.  It's nice, though I wish they'd not
 > used .Rnw for the extension.

Yes, one little problem is that the reftex table of contents won't
work out of the box.  reftex-toc assumes that the file has .tex
suffix.  To get around this, I used a "local variable" at the end of
my .tex file:

  %%% Local Variables: 
  %%% mode: latex
  %%% TeX-default-extension: "Rnw"
  %%% End: 

and now reftex-toc is working again.

What problems did you see with using .Rnw for the extension.



 > The process problem is not going to be easily solved, short of
 > doing the code right (which means probably mmm-mode, not the
 > noweb-mode hacks).  What you suggest may not work, since noweb-mode
 > re-initializes the sub-mode and does something similar to
 > narrow-to-region.  Part of the problem can be realized by actually
 > doing noweb programming in multiple languages.

Ah, okay.  my little snippet solved the problem I found with the test
file, but yes, it may introduce other problems or not correct all the
problems.

 > As far as the Sweave stuff, we probably can add a hot-key to do it.
great.

Best wishes, 
Stephen

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list