Re: [Rd] Sweave processes \Sexpr in commented LaTeX source

2006-09-21 Thread Marc Schwartz (via MN)
On Thu, 2006-09-21 at 16:08 +0200, Jean lobry wrote: > Marc, > > >I have a large .Rnw file and was in the process of doing some debugging. > >I had set some R chunks to 'eval=false' in the process. This resulted in > >some R objects not being created that were in turn used in the > >subsequent \Se

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

2006-09-21 Thread Marc Schwartz (via MN)
On Thu, 2006-09-21 at 16:40 +0200, Friedrich Leisch wrote: > > On Wed, 20 Sep 2006 10:07:26 -0700, > > Seth Falcon (SF) wrote: > > > "Antonio, Fabio Di Narzo" <[EMAIL PROTECTED]> writes: > >> 2006/9/20, Seth Falcon <[EMAIL PROTECTED]>: > >>> Peter Dalgaard <[EMAIL PROTECTED]> writes:

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source

2006-09-21 Thread Seth Falcon
[shameless plug] Jean lobry <[EMAIL PROTECTED]> writes: > <>= > x <- rnorm(100) > ... > @ > > I have \Sexpr{ifelse(exists("x"), length(x), "Ooops, I forgot > to evaluate TimeConsumingCodeChunk1")} elements in vector x. For the case of TimeConsumingCodeChunks, another solution is the weaver packag

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

2006-09-21 Thread Friedrich Leisch
> On Wed, 20 Sep 2006 10:07:26 -0700, > Seth Falcon (SF) wrote: > "Antonio, Fabio Di Narzo" <[EMAIL PROTECTED]> writes: >> 2006/9/20, Seth Falcon <[EMAIL PROTECTED]>: >>> Peter Dalgaard <[EMAIL PROTECTED]> writes: >>> > ..not to mention TeX comments inside Sexpr (e.g. %*%...). Skip

Re: [Rd] Sweave processes \Sexpr in commented LaTeX source

2006-09-21 Thread Jean lobry
Marc, >I have a large .Rnw file and was in the process of doing some debugging. >I had set some R chunks to 'eval=false' in the process. This resulted in >some R objects not being created that were in turn used in the >subsequent \Sexpr's. I have often the same problem, I'm using a construct like

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

2006-09-20 Thread Seth Falcon
"Antonio, Fabio Di Narzo" <[EMAIL PROTECTED]> writes: > 2006/9/20, Seth Falcon <[EMAIL PROTECTED]>: >> Peter Dalgaard <[EMAIL PROTECTED]> writes: >> > ..not to mention TeX comments inside Sexpr (e.g. %*%...). Skipping >> > lines with % as the first character might be a viable compromise >> > thoug

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

2006-09-20 Thread Antonio, Fabio Di Narzo
2006/9/20, Seth Falcon <[EMAIL PROTECTED]>: > Peter Dalgaard <[EMAIL PROTECTED]> writes: > > ..not to mention TeX comments inside Sexpr (e.g. %*%...). Skipping > > lines with % as the first character might be a viable compromise > > though. > > +1. You could probably ignore any lines where the fir

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

2006-09-20 Thread Seth Falcon
Peter Dalgaard <[EMAIL PROTECTED]> writes: > ..not to mention TeX comments inside Sexpr (e.g. %*%...). Skipping > lines with % as the first character might be a viable compromise > though. +1. You could probably ignore any lines where the first non-whitespace char is '%'. But if that seems to r

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

2006-09-20 Thread Marc Schwartz (via MN)
On Wed, 2006-09-20 at 12:20 +0200, Peter Dalgaard wrote: > Friedrich Leisch <[EMAIL PROTECTED]> writes: > > > > On Tue, 19 Sep 2006 19:14:39 -0500, > > > Marc Schwartz (MS) wrote: > > > > > Hi all, > > > On FC5, using: > > > > > Version 2.3.1 Patched (2006-08-06 r38829) > > > >

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

2006-09-20 Thread Peter Dalgaard
Friedrich Leisch <[EMAIL PROTECTED]> writes: > > On Tue, 19 Sep 2006 19:14:39 -0500, > > Marc Schwartz (MS) wrote: > > > 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) > > > w

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

2006-09-19 Thread Friedrich Leisch
> On Tue, 19 Sep 2006 19:14:39 -0500, > Marc Schwartz (MS) wrote: > 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} > \be

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

2006-09-19 Thread Marc Schwartz
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 +