[ESS] Snw files are not weaved by C-c C-c from AucTeX-mode

Martin Maechler maechler at stat.math.ethz.ch
Wed Aug 2 22:09:31 CEST 2006

>>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
>>>>>     on Wed, 2 Aug 2006 19:02:52 +0200 writes:


    MM> Two remarks :

    MM> o Sweave already allows *TWO* syntaxes,

    MM>   1) the one mentioned earlier in this thread

    MM>   2) a ``LaTeX-like'' one {that nobody uses, at least
    MM> not from the dozen or so samples I've seen}

    MM>   It seems you should look at option '2)' quite a bit.

The official Sweave manual, currently


explains about the "latex-like" syntax in secion
'3.5 Syntax definition'

You use it typically using  *.Stex (or *.Rtex) instead of *.[SR]nw
or explicitly by saying


and then, instead of the noweb-like syntax




you use




(The above is all according to the manual, and not tested)
Yes, I think ESS should also support the 'SweaveSyntaxLatex'
and do it automatically when the file extension is *.Stex or

Fritz, do you have any comments on this?

    MM> o Sweave will most probably not change these two
    MM> syntaxes (in a *in*compatible way) since they have been
    MM> in active use for several years now.

    MM>   But I think if you are interested, you could propose a
    MM> third syntax, and implement it -- it's all in R --
    MM> discuss and praise it (;-), and then provide patches wrt
    MM> to the current R-devel sources, so they might be adopted
    MM> into Sweave eventually.

    MM>   It's all "Free" (and hence open source) software,
    MM> after all..

    MM> Martin

    >>> The ESS/Noweb approach (which is probably still
    >>> supported in the code, though I've not checked recently)
    >>> is:
    >>> <<thisChunkName.sas>>= ** -*- mode: SAS -*- ; proc mixed
    >>> ...
    >>> @
    >>> Originally, and in a historical sense, that should have
    >>> been either:
    >>> <<thisChunkName.sas,mode=SAS>>=
    >>> @
    >>> or
    >>> <<thisChunkName.sas>>=
    >>> @ %mode SAS
    >>> Or simply recognizing the suffix on the chunk name (with
    >>> the "default code mode" being used should the chunk name
    >>> not have a suffix or even if the chunk is nameless).
    >>> but I was too lazy at the time to insist (by coding ESS
    >>> or by convincing Fritz).
    >>> best, -tony

    RoSp> ______________________________________________
    RoSp> ESS-help at stat.math.ethz.ch mailing list
    RoSp> https://stat.ethz.ch/mailman/listinfo/ess-help

    MM> ______________________________________________
    MM> ESS-help at stat.math.ethz.ch mailing list
    MM> https://stat.ethz.ch/mailman/listinfo/ess-help

More information about the ESS-help mailing list