Le 19 mai 09 à 19:08, Uwe Stöhr a écrit :
The problem is that we look only for the file Sweave.sty. but LaTeX
won't find it, because it is not available at CTAN. So even when you
have R installed. it won't be found.
Yes, but the right solution is to test for R itself. When Sweave.sty
is in a place where LaTeX does not search, the
Sweave R function actually outputs
\usepackage{/path/to/Sweave.sty}
which is kind of ugly but does the trick. This is transparent for us,
since we do not add the \usepackage
line ourselves.
Another problem is that the file Sweave.sty doesn't contain any info
about the author or license.
It does not have much functionality either... I understand why the
author did not think it was worth
distributing separately.
To make things clear: nobody distributes files that require directly
Sweave.sty. A .Rnw file is handled by R/Sweave
and produces a temporary .tex file which does use Sweave.sty. However
this temporary file is of no
interest.
So currently Sweave is not usable, because one can't get the needed
TeX style file so that LateX recognize it.
No, having the style file will not help anybody.
If there is a bug, it is on my side, where I conditioned the sweave
module on Sweave.sty. If you prefer,
I can for now make the module always possible to select (until we
implement the correct solution that I
outlined previously)
I still think it would be useful since Sweave as a LaTeX-package. It
needs R, but is a LaTeX-package. When it would be at CTAN too, not
only at CRAN, it can be included to LateX-distributions. Then MiKTeX
and TeXLive can install it and the user only needs to install R
while LyX/LaTeX does the rest for him.
But Sweave.sty does not do anything useful by itself.
JMarc