[ESS] Folding chunks in Sweave?

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Mon Jul 24 18:26:03 CEST 2006

 > So this should be hacked to work with Sweave chunks. However I am a bit 
 > sceptic about "enough markup". There surely is enough for the start i.e.
 > <<someRegExp>>=, but the end is only @. And this character also appears 
 > in R code.

Would a suitable regexp on the closing markup be something like
^@$  i.e. @ is at start of line, and only thing on line? That would
be fairly unlikely to appear otherwise in an R script.  Or even
something like 


where "\s-*" allows optional whitespace.


 > Can any lisp master handle this?
 > Gregor
 > ______________________________________________
 > ESS-help at stat.math.ethz.ch mailing list
 > https://stat.ethz.ch/mailman/listinfo/ess-help

More information about the ESS-help mailing list