# [R] LaTeX/R/Sweave Problems

Dieter Menne dieter.menne at menne-biomed.de
Sat Feb 20 12:04:25 CET 2010

```
tudor wrote:
>
> ... To overcome the fact that the R installation had spaces in the path, I
> just had the corresponding Sweave.sty in the folder where my .Rnw and .tex
> files were located and used \usepackage{Sweave} in the preamble of the
> .Rnw file.
>

Assuming that you are working on Windows, I suggest that you either put
Sweave into you local texmf directory, or add the <RHOME>/share/texmf to
your miktex (?) path, AND (!) update the FNDB in miktex. Both versions are
not perfect, the first could give problems when R/Sweave changes (it rarely
does), the second when you install a new version of R.