Man, this will be awesome. To clarify, Prof. Grosjean, can you
indicate what specific connection this will require with SciViews? I
use Tinn-R for code editing, but my workflow with LyX-R-Sweave
requires no editor. Would the same be true for what you are
developing?

Lastly, I think I may have discovered part of the problem. Perhaps
someone on this list is familiar enough with LaTeX config in MiKTeX in
Windows to sort it out for me. It might be related to having some
MiKTeX packages as "All Users" that are installed and updated with
Admin privileges and others that are specific to my own account. I get
a Windows API Error if I run texify.exe on a file:

Windows API error 14001: This application has failed to start because the
application configuration is incorrect. Reinstalling the application
may fix this problem.
texify: Data: C:\Documents and Settings\dhewitt\Application
Data\MiKTeX\2.8\miktex\bin\pdflatex.EXE

But if I run pdflatex.exe (which I believe calls the EXE in C:\Program
Files\MiKTeX 2.8\miktex\bin) on the same file, it all works.

In general, I don't understand the details of pdflatex, texify,
texi2dvi, etc. that are used in the processing, and how they relate to
each other. If I did, I could probably troubleshoot this more easily.

- Dave


On Fri, Apr 9, 2010 at 4:45 AM,  <phgrosj...@sciviews.org> wrote:
> 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
>
> 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?

Reply via email to