[R] Sweave and Miktex (Sweave.sty not found)

Greg Snow Greg.Snow at imail.org
Tue Sep 14 20:00:36 CEST 2010


I have found that if I put \include{Sweave} explicitly in my sweave source file then it finds the copy in the MikTeK folders, but if I don't then Sweave tries to add that line, but pointing to the R directory that caused the problem in the first place.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Katie Surrence
> Sent: Tuesday, September 14, 2010 6:57 AM
> To: r-help at r-project.org
> Subject: [R] Sweave and Miktex (Sweave.sty not found)
> 
> Hi all,
> 
> I know from googling that this is a common problem; I've just tried
> what I
> understand to be the common solutions to know avail -- maybe I'm just
> confused.
> 
>  I installed Miktex 2.8 -- it seems to be working fine.
> 
> I'm using this demo document:
> http://www.stat.berkeley.edu/~houston/demo.Rnw
> 
> I've copied the Sweave.sty file into at this point multiple places on
> the
> Miktex path, including folders where I can see that it is looking for,
> and
> successfully finding, sty files (e.g. Miktex 2.8/tex/latex/base).   I
> also
> went to the Miktex settings application and clicked Refresh FNDB and
> Update
> formats.
> 
> Still I get this error when I try to run pdfLaTeX on the demo.tex file:
> !LaTeX Error: File 'Sweave.sty' not found.
> 
> Can anyone help?
> 
> Thanks!
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list