Thanks for the solution! I'm not sure if the author of that document can see this email, so I guess you'd better cc Jeff or Dave.
As for the batch file, I mentioned this once to JMarc, and I do not if this is a good solution, because if the user knows how to modify PATH, he/she does not need the Rweave.bat trick. So which way is better to go? Teach Windows users PATH or use the batch files to find R automatically? Or let LyX borrow the idea of the batch file as a part of its configuration? e.g. when (re)configuring LyX, the path to Rscript.exe will be searched automatically. Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Nov 3, 2011 at 12:25 PM, Bruce Kendall <kend...@bren.ucsb.edu> wrote: > This is a solution rather than a question. I am running Windows 7 Enterprise > (V. 6.1, build 7601, SP1). I had followed the instructions at > http://wiki.lyx.org/uploads/LaTeX/SweaveR/lyx_with_r_and_sweave_instructions.pdf, > and > while both versions of the batch file worked from the command line, LyX > couldn't > get past generating the noweb file. > > I finally tracked down the solution. The converter command (step 8) has to be > "Rweave.bat $$i" rather than "Rweave $$i". > > Bruce > >