[R] [Rd] Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)

Marc Schwartz (via MN) mschwartz at mn.rr.com
Wed Sep 20 17:22:44 CEST 2006


On Wed, 2006-09-20 at 09:09 +0200, Antonio, Fabio Di Narzo wrote:
> Hi.
> 
> 2006/9/20, Marc Schwartz <MSchwartz at mn.rr.com>:
> > Hi all,
> >
> > On FC5, using:
> >
> >   Version 2.3.1 Patched (2006-08-06 r38829)
> >
> > and today's
> >
> >   R version 2.4.0 alpha (2006-09-19 r39397)
> >
> > with the following .Rnw file:
> >
> >
> > \documentclass[10pt]{article}
> > \begin{document}
> >
> >    This line should print '2': \Sexpr{1 + 1}
> > %% This line should NOT print '2': \Sexpr{1 + 1}
> 
> If it's just a comment, why don't use something like:
> % \ Sexpr (del the space)
> or
> %\sexpr (change 'sexpr' with 'Sexpr')
> or
> %...the 'Sexpr' command (add a backslash in latex code)
> ?
> 
> Antonio.

See my comments in this post on r-devel, where this thread was
originally started:

  https://stat.ethz.ch/pipermail/r-devel/2006-September/039416.html

HTH,

Marc



More information about the R-help mailing list