On Thu, Nov 3, 2011 at 8:34 PM, Yihui Xie <x...@yihui.name> wrote:
> 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
>
As far as I'm concerned best is to properly document PATH tweaks for
Sweave users on Windows. Batch tricks may work in one version, but not
in the next one. And one of the best things about LyX is that it keeps
things transparent; if it could, and it certainly seems so, a
"black-box" trick should be avoided.

My 02.00€
Liviu


> 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
>>
>>
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to