Hi!

lyx-de...@oak-tree.us wrote:
Hi JMarc,

Reasonably sure.  I was having the problems back in November.  And there
were two separate issues.  The first was getting LyX 2 to work, the second
was related to getting R + Sweave to work.

The problems that eventually required Sweave.sty were related to getting
documents to compile correctly.  Without it, the compilation would simply
terminate with "There was an R error" or some such.  After placing
Sweave.sty in the tex path, this resolved itself.

Being truth what I've said before and what JMarc said about LyX checking R availability to load Sweave module, I'm facing the same problem Rob describes when trying to compile a new document including S/R expressions. I will try to describe the situation:


*1.* A LyX 2.0.0 alpha2 installation crashes when trying to load Sweave module if R is not installed in the same box. In this case, I guess it will be advisable to trigger a warning saying that R is required instead of causing an exception that crashes LyX. I'm sure developers are consciences of this and the only problem here is time to make the required changes! :-)

*2. *Once R is installed, Sweave module loads without a glitch.

*3.* If I try to compile a new document including S/R expressions, compilation fails throwing the following error:

! LaTeX Error: File `Sweave.sty' not found.

Here the full stack to further reference:

http://xen.net/onLyX/lyxSweaveStyNotFound.html

As stated in a previous message, the LaTeX environment here was created as per...

http://www.tug.org/mactex/2009/
[ approximately 1.3G - 12 March 2010 ]
MacTeX-2009.mpkg
MacTeX.mpkg.zip

*4. *Until I copy Sweave.sty to the TeX path and reconfigure LyX, compilation fails.

I copied Sweave.sty from a older box with a running LyX 1.6.5/Sweave/R installation.

GMXUX-Ricardo-Rodriguez:~ rrodriguez$ kpsewhich Sweave.sty
/Users/rrodriguez/Library/texmf/tex/latex/R/Sweave.sty



Please, provided its module is loaded, must Sweave work out of the box in LyX 2.0? Is it expected that Sweave.sty is included with LaTeX? I guess a warning will be required some where to avoid the problem we are facing here! Thanks!

Let me know if I can be of any further help!

Greetings,

Ricardo

--
Ricardo Rodríguez
CTO
eBiotic.
Life Sciences, Data Modeling and Information Management Systems

Reply via email to