Dear all:

Thank Paul Johnson for the instruction about using Rweave for Linux
users (see http://wiki.lyx.org/LyX/LyxWithRThroughSweave). I am trying
to copy following his instruction to make this work in Windows XP (with
Lyx 1.3.7 installed), but I have some errors when converting convert his
example file Gamma-02.lyx
(http://pj.freefaculty.org/stat/Distributions/Gamma-02.lyx) to pdf.

Given the instruction, I added the converter NoWeb->LaTeX (in
Edit->Preferences->Converters). Then I made a script Rweave.exe and put
it to C:\ProgramFiles\Lyx\bin (the path registered in Lyx). The system
halted when I viewed it in pdf.

I will appreciate if you point out a problem in this Rweave script and
show me the right way to do it. Thank you.

Here is the one-line script Rweave.exe:

#!/bin/sh
echo "library(\"utils\"); Sweave(\"$1\")" |
C:\ProgramFiles\R-2.2.1\bin\Rgui.exe --no-save --no-restore


- Frank Liu

Reply via email to