[R] Sweave echoing comments (again)

Thomas Petzoldt thpe at hhbio.wasser.tu-dresden.de
Mon Sep 6 13:30:46 CEST 2004


I try to document some R scripts for my collegues and observed the 
problem, that Sweave strips comment lines away.

As a small example I write in an Rtex file:

## a small example
test() # line comment

... the .tex file generated by Sweave only contains:


... and all the comments are lost. Looking into the archives, I found, 
that such a question appeared already some months ago. Are there any 
advances or workarounds doing such things today?

Thank you in advance!

Thomas P.

More information about the R-help mailing list