Am 08.09.2010 um 23:59 schrieb Jean-Marc Lasgouttes: > Le 8 sept. 10 à 17:27, [Ricardo Rodriguez] eBioTIC. a écrit : >> I guess that information concerning LyX in the R-project will be updated >> when LyX 2.0.0 is on the can. >> The same will be true with "LyX with R through Sweave" in the LyX wiki. But, >> please, why Sweave.sty is >> not included with LyX 2.0.0 binaries? At least it is not included in the >> *.dmg one. If it is now (with >> the new 2.0.0 release) possible to use Sweave out of the box, why not >> include Sweave.sty with the LyX distribution? > > Normally, what happens is that R is installed with Sweave.sty somewhere, but > LaTeX has to find it. > We do not want to ship it, since there is a risk of having a version that is > not the right one.
I was not about to add it to the package :-) I can remember the discussion about that topic and that it is intentionally not included into LyX. > Before R 2.8.0, Sweave made a good job at adding > \usepackage{/path/to/sweave/Sweave} > in the header of the document and the file was found. With current versions, > this is not the case anymore > unless the environment variable SWEAVE STYLEPATH DEFAULT is set to true. > > We need to find a way to automate this. Asking users to install the R file is > bad. It seems however that > one cannot pass options to "R CMD Sweave". The problem to locate Sweave.sty is platform independent, I guess? So, "smart" solutions with creating a symlink are no option. Setting the environment would work? But I'm asking without having the option to test something. I'll return to this after finishing the spell checker stuff. Stephan