Skip to content
Prev 316425 / 398506 Next

Sweave files generating miktex errors

On 29/01/2013 1:37 PM, Troy S wrote:
I don't know if this is the cause of your problem, but you are doing one 
Bad Thing:  you have a copy of Sweave.sty in the same directory as your 
document.  This is Bad because it is very easy to end up with Sweave.sty 
from R version X while using Sweave in R version Y, where X != Y.   You 
should leave Sweave.sty where it is in the R installation, and use

R CMD Sweave --pdf testsweave.Rnw

(or one of the many equivalents) to process it.

Duncan Murdoch