On 3/6/2007 5:20 PM, Brett Presnell wrote:
How exactly should I go about turning off annotation when running
Stangle (Rtangle) with R CMD Stangle myfile.Rnw?
Ideally I would like to be able to turn annotation off and on for
individual code chunks, or maybe better, to annotate only named
chunks. Are either of these things easily done?
Is there some way to figure out this sort of thing without reading
through the source code in Sweave.R?
I don't think R CMD Stangle has a way to pay attention to optional args
to Stangle, but this works:
echo Stangle('myfile.Rnw', annotate=F) | Rterm --slave
Duncan Murdoch
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.