Let MacTeX find Sweave.sty with R 2.8
R 2.8 changed the default way that the Sweave package files were linked to. It used to hardcode the location into the resulting .tex file, but now just inserts
So, we need to tell MacTeX where to find the Sweave style files. Assuming you've installed R and MacTeX from the package installers
This will create a link from your user's tex directory to the Sweave files from R.
\usepackage{Sweave}
So, we need to tell MacTeX where to find the Sweave style files. Assuming you've installed R and MacTeX from the package installers
mkdir -p ~/Library/texmf/tex/latex cd ~/Library/texmf/tex/latex ln -s /Library/Frameworks/R.framework/Resources/share/texmf Sweave
This will create a link from your user's tex directory to the Sweave files from R.