Re: [Rd] keep.source when semicolons separate statements on the one line

2011-02-05 Thread Duncan Murdoch
On 05/02/2011 1:18 PM, Duncan Murdoch wrote: On 04/02/2011 3:34 PM, Kevin R. Coombes wrote: This is probably the same underlying bug, but it is not caused by semicolons. Yes, it was the same bug. I think I have it fixed now, and will commit after some more testing. Now committed as r54232 i

Re: [Rd] keep.source when semicolons separate statements on the one line

2011-02-05 Thread Duncan Murdoch
On 04/02/2011 3:34 PM, Kevin R. Coombes wrote: This is probably the same underlying bug, but it is not caused by semicolons. Yes, it was the same bug. I think I have it fixed now, and will commit after some more testing. Duncan Murdoch If you use keep,soure=TRUE with expand=FALSE and int

Re: [Rd] keep.source when semicolons separate statements on the one line

2011-02-04 Thread Kevin R. Coombes
This is probably the same underlying bug, but it is not caused by semicolons. If you use keep,soure=TRUE with expand=FALSE and interpolate a code chunk, the name of the chunkl is sent to the TeX file once for every line in the chunk. Specifically, the source file: %%% \documentclass{

Re: [Rd] keep.source when semicolons separate statements on the one line

2011-02-04 Thread Duncan Murdoch
Thanks for the report. I'll take a look. I'm now past one major time sink, and will have some time to catch up on old problems; I'll add this to that list. Duncan Murdoch On 03/02/2011 7:09 PM, John Maindonald wrote: The following is 'semicolon.Rnw' > \SweaveOpts{engine=R, keep.source=TRU

[Rd] keep.source when semicolons separate statements on the one line; PS

2011-02-03 Thread John Maindonald
I forgot to add the sessionInfo() information: > sessionInfo() R version 2.12.1 Patched (2011-01-22 r54081) Platform: x86_64-pc-mingw32/x64 (64-bit) . . . The following is 'semicolon.Rnw' > \SweaveOpts{engine=R, keep.source=TRUE} > > <>= > library(SMIR); data(bronchit); library(KernSmooth) > @

[Rd] keep.source when semicolons separate statements on the one line

2011-02-03 Thread John Maindonald
The following is 'semicolon.Rnw' > \SweaveOpts{engine=R, keep.source=TRUE} > > <>= > library(SMIR); data(bronchit); library(KernSmooth) > @ % > > Code for panel A is > <>= > <> > @ % Sweave("semicolon") yields the following 'semicolon.tex' > Code for panel A is > \begin{Schunk} > \begin{Sinput