I just found pgfSweave under R 2.12.0 had a weird issue now: it will insert line numbers in the beginning of every code chunk like this
#line 25 'pgfSweave-example.Rnw'
I know this is for the purpose of reporting errors in code chunks (new feature of R 2.12.0), but I'm sure there are no errors in the code. On the other hand, I'm not sure if this problem is actually from my tidy.source() function, or some other parts of pgfSweave.
I just found pgfSweave under R 2.12.0 had a weird issue now: it will insert line numbers in the beginning of every code chunk like this
#line 25 'pgfSweave-example.Rnw'
I know this is for the purpose of reporting errors in code chunks (new feature of R 2.12.0), but I'm sure there are no errors in the code. On the other hand, I'm not sure if this problem is actually from my
tidy.source()
function, or some other parts of pgfSweave.Searching for "#line" in http://svn.r-project.org/R/trunk/src/library/utils/R/Sweave.R might reveal the problem.
Yihui