It's a couple of months that I prepare an alternate, complete LyX/R/Sweave
solution (for SciViews). It provides more than just the possibility to
weaving/tangling LyX documents (new styles, menu entries and toolbar
buttons to easily create various R chunks, a weaving/tangling log or
errors or warnings, Sweave features contaibned in a LyX module, etc.)

It is not completely finished, but pretty usable for now. If you like, I
have put everything in a zip file you can get from here:
http://www.sciviews.org/LyX/SciViewsLyX16.zip. Then, follow the ReadMe.txt
file included in it.

Take care: it completely replaces your whole LyX configuration! You have
to backup it first (as explained in the ReadMe.txt file).

With this version, R only converts the LyX file to .tex and LyX does the
rest like producing a DVI, PDF or PS. Also, you can produce the .Rnw file
to compile it outside of LyX (useful for packages vignettes, for
instance).

I have it also running on Mac OS X and Linux, but the files and
instructions in the link provided above are for Windows only (tested on
Windows XP sp3). Please, ask me later on for the other configs... but for
today, I don't have time to compile them.

Best,

Philippe Grosjean

..............................................<°}))><........
 ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
 ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
 ) ) ) ) )   Mons University, Belgium
( ( ( ( (
..............................................................

On 09/04/10 00:41, David Hewitt wrote:
>>> I run LyX from a command window and watch what goes on in the
>>> background. All goes fine through the whole process, texi2dvi runs and
>>> finishes (and I can confirm that it finds and executes texi2dvi.exe in
>>> the MiKTeX bin), and then LyX pukes an error that it cannot open the
>>> PDF because the PDF does not exist. Indeed, if I check the temp
>>> directory
>>> for LyX, all files are present but the PDF. I get no other warnings or
>>> errors from texi2dvi and cannot figure out why this happens.
>>>
>> Did you look at Document>  LaTeX log? Sometimes it will display errors
>> that are not popped-up by LyX.
>
> That menu item is greyed out, presumably because I used a converter
> through the batch file to make the PDF, so LyX wasn't really doing the
> work (and thus does not have record of the transaction?).
>
>>> Can someone help me figure out why texi2dvi fails to produce a PDF?
>>> Does anyone know if it is perhaps something about MiKTeX and the way
>>> the texi2dvi.exe works? Might it be possible to bypass that program
>>> and do the conversion via LyX more directly after R finishes the
>>> Sweaving and Stangling?
>>>
>> Did you try pdflatex, or ps2pdf?
>
> Yeah, pdflatex works a charm when called on the tex file resulting
> from Sweaving directly from the command line. That's what I was
> getting at here. It seems like the issue is in R's function texi2dvi
> (which calls MiKTeX's texi2dvi.exe to do the work), so I was hoping
> there was some way to let the converter in LyX run the batch file,
> pass the Sweaving/Stangling and TeX file production off to R, then
> come back and run pdflatex out of LyX to get the PDF from the TeX
> file. Surely this is possible?
>
>
> Thanks a million for the help!
>
>


Reply via email to