[R] comments in Sweave

Duncan Murdoch murdoch at stats.uwo.ca
Sat Jan 13 21:59:55 CET 2007


On 1/13/2007 3:16 PM, Jeff D. Hamann wrote:
> Has anyone been able to include R comments in Sweave docs so that the
> comments aren't deleted?

This has been fixed in R-devel (to become 2.5.0 next spring).  You need 
to specify the "keep.source=TRUE" Sweave option, either in the chunk, or 
in the file as a whole.

Duncan Murdoch



More information about the R-help mailing list