Reputation: 4692
I found that I can keep comments in the Sweave code chunks by specifying keep.source in the \SweaveOpts, but is there a way to make the code listing look nice like with grayed out comments?
Upvotes: 8
Views: 1319
Reputation: 6310
There are several options illustrated at Vanderbilt University's Department of Biostatistics sweave templates site: http://biostat.mc.vanderbilt.edu/wiki/Main/SweaveTemplate
I found the Sweavel style to be the most flexible.
The highlight package is another option.
Upvotes: 5