[ESS] knitr

Vitalie Spinu spinuvit at gmail.com
Sat Jun 2 17:55:46 CEST 2012

  >> Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>
  >> on Sat, 02 Jun 2012 16:37:34 +0100 wrote:

  >> KnitR allows for custom regexp for chunk delimiter. This would allow
  >> proper indentation of TeX and R code.
  > I don't quite follow - what would be the best chunk delimeter in this
  > case -- would the <<>> and @ (noweb) not suffice?  

It's not just <<>> and @ it's ^<<>> and ^@. This ruins LaTeX indentation
when R chunks are not at the top level. Would be good not to pin them to
the bol.

  > Might Emacs support for custom regexps make the multiple-mode
  > support tricky?

Might be tricky. But this should be a user problem who plans to change
the delimiter. If we can make noweb generically depend on customizable
delimiter and ensure that it works with standard delimiters, our job is


More information about the ESS-help mailing list