[R] finding yap.exe with Sweave

Christopher W. Ryan cryan at binghamton.edu
Wed Dec 31 21:04:56 CET 2008

Hmm, it's been a while since I installed my R and Sweave, so I can't
remember exactly how I did it, but I don't recall any particular
difficulties. I think I had to copy the Sweave.sty to my localtexmf
tree; I see it there now in
in addition to having it in
C:\Program Files\R\R-2.5.1\share\texmf\Sweave.sty.

I suppose instead I could have just put the latter directory in my
MikTex as a local tree, in which to look for .sty files.

I use MikTex too, and I don't use any particular editor; I write in
TinnR but have used Programmers Notepad and others successfully.

What do you mean you had to use, "notepad++ to tell Sweave where
Latex.exe and yap.exe where located under MikTex path?"

Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
40 Arch Street, Johnson City, NY  13790
PGP public keys available at http://home.stny.rr.com/ryancw/

"If you want to build a ship, don't drum up the men to gather wood,
divide the work and give orders. Instead, teach them to yearn for the
vast and endless sea."  [Antoine de St. Exupery]

Felipe Carrillo wrote:
> Dear all:
> Just to make sure I am on the same page as everyone else. 
> I just got a new computer and had to reinstall MikTex and  of course R and Tinn-R. In order to be able to generate PDF's with Sweave I had to install notepad++ to tell Sweave where Latex.exe and yap.exe where located under MikTex path. So,I have two questions: 
> 1- Do I need to have a Miktex editor in order to use Sweave? I am not using the editor because I am generating my PDF's from R using Sweave.
> 2- Is Sweave able to find the path to Latex.exe and yap.exe by itself?
> Everything works fine now but I am just want to get it right for future installations.
> I'm running on windows xp and have R-2.8.1 installed
> Thanks in advance
> Felipe D. Carrillo  
> Supervisory Fishery Biologist  
> Department of the Interior  
> US Fish & Wildlife Service  
> California, USA
> ______________________________________________
> 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