<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div>In a .Rnw (Sweave) file, if I go to Bundles > latex > TeXcount, I get the following in the pop up box:</div><div><br></div><div><div>[l;3lm!!! Encountered }without corresponding { !!![Om</div><div>[l;3lm!!! Encountered }without corresponding { !!![Om</div><div>[l;3lml!! Encountered iwithout corresponding { !!![Om</div><div>[l;3lm!!! Encountered iwithout corresponding { !!![Om</div><div>[l;3lm!!! Encountered iwithout corresponding { !!![Om</div><div>[l;3lm!!! Encountered iwithout corresponding { !!![Om</div><div>[l;3 lm!!! Encountered iwithout corresponding {. !!![Om</div><div>[l;3lm!!! Reached end offile while waiting for }. !!![Om</div><div>[l;3lm!!! Reached end offile while waiting for S !!![Om</div><div>[l;3lm!!! Reached end offile while waiting for }. !!![Om</div><div>[l;3lm!!! Reached end offile while waiting for }. !!![Om</div><div>[l;3lm!!! Reached end offile while waiting for S !!![Om</div><div>[l;3lml!! Reached end offile while waiting for }. !!![Om</div></div><div><br></div><div>However, TeXcount works fine in a .tex file. So it looks like the problem occurs because the .Rnw contains R code.</div><div><br></div><div>Is there a way to get TeXcount working in a .Rnw file?</div><div><br></div><div>Thanks </div><div>Ross </div></body></html>