Re: [R] Line numbers in Sweave

2010-11-03 Thread Duncan Murdoch
On 03/11/2010 11:52 AM, Yihui Xie wrote: Well, I know this is true for the default Sweave(), and my problem actually comes from the pgfSweave package: I used some tricks to "cheat" R to parse and deparse the code chunks so that the output can be automatically formatted (and preserve the comments,

Re: [R] Line numbers in Sweave

2010-11-03 Thread Yihui Xie
Well, I know this is true for the default Sweave(), and my problem actually comes from the pgfSweave package: I used some tricks to "cheat" R to parse and deparse the code chunks so that the output can be automatically formatted (and preserve the comments, [1]). The price to pay for not being "hone

Re: [R] Line numbers in Sweave

2010-11-02 Thread Duncan Murdoch
On 02/11/2010 5:50 PM, Yihui Xie wrote: Hi, I thumbed through the source code Sweave.R but was unable to figure out when (under what conditions) R will insert the line numbers to the output. The R 2.12.0 news said: • Parsing errors detected during Sweave() processing will now be rep

[R] Line numbers in Sweave

2010-11-02 Thread Yihui Xie
Hi, I thumbed through the source code Sweave.R but was unable to figure out when (under what conditions) R will insert the line numbers to the output. The R 2.12.0 news said: • Parsing errors detected during Sweave() processing will now be reported referencing their original location in