From jfox@mcmaster.ca  Tue Oct 15 21:57:37 2002
From: jfox@mcmaster.ca (John Fox)
Date: Tue, 15 Oct 2002 16:57:37 -0400
Subject: Sweave (PR#2142)
In-Reply-To: <15786.31304.333618.232936@galadriel.ci.tuwien.ac.at>
References: <NGBBKLJCOLPAFMJIEMHCAEIACCAA.c.declercq@orsnpdc.org>
 <15782.33889.962443.84196@galadriel.ci.tuwien.ac.at>
 <NGBBKLJCOLPAFMJIEMHCAEIACCAA.c.declercq@orsnpdc.org>
Message-ID: <5.1.0.14.2.20021015165314.027a3f98@mcmail.cis.mcmaster.ca>

Dear Friedrich et al.,

Why not make the default location for installing the Windows version of R 
"c:\R" rather than "c:\Program Files\R", thus avoiding this and other 
potential problems? Perhaps there's some consideration of which I'm unaware.

Regards,
  John

At 10:03 AM 10/14/2002 +0200, Friedrich.Leisch@ci.tuwien.ac.at wrote:
> >>>>> On Fri, 11 Oct 2002 15:35:38 +0100,
> >>>>> Christophe Declercq (CD) wrote:
>
>   > Thanks, Fritz, for your answer.
>   >> De : Friedrich Leisch [mailto:leisch@galadriel.ci.tuwien.ac.at]
>   >> [...]
>   >> The path is correct (I want to have Sweave.sty in
>   >> $R_HOME/share/texmf), but the install procedure has a bug: Sweave.sty
>   >> does not get installed properly when builddir != srcdir. This has been
>   >> fixed in both the devel and patched version of R.
>
>   > Yes, but  'file.path(R.home(), "share", "texmf", "Sweave")' on my 
> MS-Windows
>   > box gives "C:\\R\\RW1060/share/texmf/Sweave".
>
>   > With that, you get '\usepackage{C:RRW1060/share/texmf/Sweave}' in the tex
>   > file. The problem seems to be with the 'R.home()' output on MS-Windows.
>
>   > 'file.path(.path.package("tools"), "Sweave", "Sweave")' was giving
>   > "C:/R/RW1060/library/tools/Sweave/Sweave" which is OK for pdflatex.
>
>   > Anyway, thanks a lot for Sweave which is really great (for the 
> moment, as I
>   > need it working, I have just put back the old stylepath code in tools).
>
>I commited a fix to the patched version of R that translates all
>backslashes to slashes on windows. This now works for me (on Windows
>XP) if the path to R_HOME contains no spaces. For installations in
>directories like "Program Files" I still have the following problem: I
>can either use
>
>         \usepackage{c:/progra~1/rw1060/share/texmf/Sweave}
>
>or
>
>         \usepackage{c:/program files/rw1060/share/texmf/Sweave}
>
>both of which do *NOT* work with my latex installation
>(miktex). Unless somedy has a good suggestion how to solve the problem
>my recoomendation is to either install R into a path without spaces or
>copy Sweave.sty to some place in your TEXINPUTS path and use
>stylepath=FALSE when calling Sweave.
>
>
>Fritz
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
>Send "info", "help", or "[un]subscribe"
>(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox@mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Sweave (PR#2142)
John Fox