2

I am writing a statistical report using .Rnw buffer and enjoying the very nice ess-noweb-mode, which I see very promising indeed, but what struck me is the strange behavior when I hit the keybinding to insert a new chunk M-n i it will introduce an extra @ symbol at the very beginning of the chunk, is this an expected behavior or am I missing some point here? your input would be much appreciated.

@ 
<<anyChunkName>>=
R code goes here
@ %def 

I had to delete that leading @ each time writing an R chunk to appear like this:

<<anyChunkName>>=
R code goes here
@ %def 

Note I am using ESS vesrion 15.09-2 patched

  • 1
    ESS-noweb-mode is 'semi-obsolete', and as such is not currently maintained: github.com/emacs-ess/ESS/issues/215 . The replacement is polymode: github.com/vspinu/polymode . Polymode is undergoing rapid development; however, last I tried it there were still some rough edges to be addressed. Maybe now, or soon, it will be much better than what ess-noweb ever was. – Tyler May 17 '16 at 13:55
  • thanks for the input, hoping that polymode would be the ultimate tool. – doctorate Jun 10 '16 at 10:07
1

In my emacs and ess, I just typed "<" then

<<>>=
@

comes out automatically.

  • Wecome to emacs SE! Please use comments if you want to help but don't know the answer. – JeanPierre Mar 17 '16 at 21:20
  • a great tip! however,I cannot see it as an answer, as it didn't specifically answer the question. – doctorate Mar 18 '16 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.