[OS X TeX] How to make aquamacs find Sweave without needing to specify location

Denis Chabot chabotd at globetrotter.net
Thu Nov 27 21:16:01 EST 2008


Hi,

I recently asked the same question on the R for Mac mailing list. I  
was given two solutions, i.e. fixing this via LaTeX or via R. I used  
the second.

1) add the path to Sweave.sty in the LaTeX path (which is presumably  
what Maarten suggests?)


2) Put the following in your ~/.Rprofile (you might have to create  
this file) to revert to the old behaviour

Sys.setenv("SWEAVE_STYLEPATH_DEFAULT" = "TRUE")

By the way, you'll find useful reasons (including why this new  
behavior as of R 2.8) by typing ?RweaveLatex in the R console.

Denis
Le 08-11-21 à 15:00, macosx-tex-request at email.esm.psu.edu a écrit :

> Message: 13
> Date: Fri, 21 Nov 2008 20:44:15 +0100
> From: Maarten Sneep <maarten.sneep at xs4all.nl>
> Subject: Re: [OS X TeX] How to make aquamacs find Sweave without
> 	needing to	specify location
> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
> Message-ID: <8D92D216-3AA9-4FDB-87C1-6FF42B1C38C2 at xs4all.nl>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On 21 nov 2008, at 20:23, Christopher David Desjardins wrote:
>> I install MacTex 2008 from the website and unfortunately this is
>> still not working for me.  I am not sure what the problem is exactly
>> but I appreciate your help Maarten.
>
> MacTeX 2008 should have the ~/Library included; you're using the
> "Default install" on this mailing list.
>
> The other option is to copy everything in the directory inside the R
> bundle (in the directory you indicated) into ~/Library/texmf/tex/ 
> latex/
> Sweave Perhaps symlnks don't work, and you just have to copy.
>
> mkdir -P ~/Library/texmf/tex/latex/Sweave
> cd ~/Library/texmf/tex/latex/Sweave
> cp /Library/Frameworks/R.framework/Resources/share/texmf/* .
>
> Hope this (finally) helps.
>
> Maarten

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20081127/a18f0d13/attachment.html>


More information about the MacOSX-TeX mailing list