[R] Sweave : some comments disappear

2011-09-06 Thread Remko Duursma
Dear R-helpers, when I have an R code chunk in a sweave file like this: = x - 1:10 # this comment disapears x # this one does not! print(x) #mean mean(x) @ The first comment does not appear in the sweaved document, the second one does. How can this be? I have tried print=TRUE and

Re: [R] Sweave : some comments disappear

2011-09-06 Thread Achim Zeileis
On Tue, 6 Sep 2011, Remko Duursma wrote: Dear R-helpers, when I have an R code chunk in a sweave file like this: = x - 1:10 # this comment disapears x # this one does not! print(x) #mean mean(x) @ The first comment does not appear in the sweaved document, the second one does. How can

Re: [R] Sweave : some comments disappear

2011-09-06 Thread Remko Duursma
Sorry about that - I did give an example that I thought was reproducible (it is here), but apparently wasn't. I suspect my problem might have to do with the 'highlight' package I am using - which I should have mentioned. I am using the latest version of R. remko