In a .Rnw (Sweave) file, if I go to Bundles > latex > TeXcount, I get the following in the pop up box:
[l;3lm!!! Encountered }without corresponding { !!![Om [l;3lm!!! Encountered }without corresponding { !!![Om [l;3lml!! Encountered iwithout corresponding { !!![Om [l;3lm!!! Encountered iwithout corresponding { !!![Om [l;3lm!!! Encountered iwithout corresponding { !!![Om [l;3lm!!! Encountered iwithout corresponding { !!![Om [l;3 lm!!! Encountered iwithout corresponding {. !!![Om [l;3lm!!! Reached end offile while waiting for }. !!![Om [l;3lm!!! Reached end offile while waiting for S !!![Om [l;3lm!!! Reached end offile while waiting for }. !!![Om [l;3lm!!! Reached end offile while waiting for }. !!![Om [l;3lm!!! Reached end offile while waiting for S !!![Om [l;3lml!! Reached end offile while waiting for }. !!![Om
However, TeXcount works fine in a .tex file. So it looks like the problem occurs because the .Rnw contains R code.
Is there a way to get TeXcount working in a .Rnw file?
Thanks Ross