I'm using R2HTML package to generate reports, but don't know how to extract R codes from .rnw files using "Stangle". It seems "Stangle" only works on ..tex file that has R codes embedded. Thanks, ....Tao _________________________________________________________________ Hotmail.