From Friedrich.Leisch@ci.tuwien.ac.at  Fri Oct 11 08:57:21 2002
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich.Leisch@ci.tuwien.ac.at)
Date: Fri, 11 Oct 2002 09:57:21 +0200
Subject: Sweave (PR#2142)
In-Reply-To: <200210101402.QAA17764@pubhealth.ku.dk>
References: <200210101402.QAA17764@pubhealth.ku.dk>
Message-ID: <15782.33889.962443.84196@galadriel.ci.tuwien.ac.at>


  > In the 'RWeaveLatexSetup' function in the 'tools' package in R 1.6.0 , th=
  > e
  > code below does not work (pdflatex can't find 'Sweave.sty'):

  > if (stylepath)
  >         styfile <- file.path(R.home(), "share", "texmf", "Sweave")
  >     else styfile <- "Sweave"

  > In R 1.5.1, that was:

  > if(stylepath)
  >         styfile <- file.path(.path.package("tools"),
  >                              "Sweave", "Sweave")
  > else
  >         styfile <- "Sweave"

  > and that was working.

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.

As a quick fix for 1.6.0: please copy Sweave.sty manually to
$R_HOME/share/texmf.

Thanks a lot for the bug report,
Fritz

-- 
-------------------------------------------------------------------
                        Friedrich Leisch 
Institut fr Statistik                     Tel: (+43 1) 58801 10715
Technische Universitt Wien                Fax: (+43 1) 58801 10798
Wiedner Hauptstrae 8-10/1071      Friedrich.Leisch@ci.tuwien.ac.at
A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch
-------------------------------------------------------------------


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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)
Friedrich.Leisch@ci.tuwien.ac.at