Re: LyX/Sweave on windows 7

2011-11-04 Thread Jean-Marc Lasgouttes

Le 03/11/2011 20:34, Yihui Xie a écrit :

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.


What I would like is to find a windows python hacker who could implement 
the registry searching code of the bat file in our own configure.py. 
This is just a specialized PATH searching routine.


Anyone willing to do that?



Re: LyX/Sweave on windows 7

2011-11-04 Thread Dave Hewitt
Yihui Xie xie at yihui.name writes:

 
 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.

I don't think Jeff or I have either looked at that document in a while.
Of course if there is a specific fix that needs to occur, let us know.
However, the instructions were tested on a number of machines
(I think incl Win 7 for Jeff).

For me, interest waned when last time I upgraded.

The latest LyX 1.6.x upgrade broke the whole thing (not sure which).
I never figured out why.

So, I just waited a bit till LyX 2 for the module integration of Sweave.
It just worked out of the box for me.
I'd recommend it to all Win LyX-Sweave users.

Big thanks to Yihui and the other devels working on this.




Re: LyX/Sweave on windows 7

2011-11-04 Thread Yihui Xie
FWIW, here is the repository for the R batchfiles:
http://code.google.com/p/batchfiles/ I'm not familar with Python, and
I hope this could be helpful to our potential Python hackers.

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 Fri, Nov 4, 2011 at 4:34 AM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:
 Le 03/11/2011 20:34, Yihui Xie a écrit :

 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.

 What I would like is to find a windows python hacker who could implement the
 registry searching code of the bat file in our own configure.py. This is
 just a specialized PATH searching routine.

 Anyone willing to do that?




Re: LyX/Sweave on windows 7

2011-11-04 Thread Jean-Marc Lasgouttes

Le 03/11/2011 20:34, Yihui Xie a écrit :

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.


What I would like is to find a windows python hacker who could implement 
the registry searching code of the bat file in our own configure.py. 
This is just a specialized PATH searching routine.


Anyone willing to do that?



Re: LyX/Sweave on windows 7

2011-11-04 Thread Dave Hewitt
Yihui Xie xie at yihui.name writes:

 
 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.

I don't think Jeff or I have either looked at that document in a while.
Of course if there is a specific fix that needs to occur, let us know.
However, the instructions were tested on a number of machines
(I think incl Win 7 for Jeff).

For me, interest waned when last time I upgraded.

The latest LyX 1.6.x upgrade broke the whole thing (not sure which).
I never figured out why.

So, I just waited a bit till LyX 2 for the module integration of Sweave.
It just worked out of the box for me.
I'd recommend it to all Win LyX-Sweave users.

Big thanks to Yihui and the other devels working on this.




Re: LyX/Sweave on windows 7

2011-11-04 Thread Yihui Xie
FWIW, here is the repository for the R batchfiles:
http://code.google.com/p/batchfiles/ I'm not familar with Python, and
I hope this could be helpful to our potential Python hackers.

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 Fri, Nov 4, 2011 at 4:34 AM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:
 Le 03/11/2011 20:34, Yihui Xie a écrit :

 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.

 What I would like is to find a windows python hacker who could implement the
 registry searching code of the bat file in our own configure.py. This is
 just a specialized PATH searching routine.

 Anyone willing to do that?




Re: LyX/Sweave on windows 7

2011-11-04 Thread Jean-Marc Lasgouttes

Le 03/11/2011 20:34, Yihui Xie a écrit :

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.


What I would like is to find a windows python hacker who could implement 
the registry searching code of the bat file in our own configure.py. 
This is just a specialized PATH searching routine.


Anyone willing to do that?



Re: LyX/Sweave on windows 7

2011-11-04 Thread Dave Hewitt
Yihui Xie  yihui.name> writes:

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

I don't think Jeff or I have either looked at that document in a while.
Of course if there is a specific fix that needs to occur, let us know.
However, the instructions were tested on a number of machines
(I think incl Win 7 for Jeff).

For me, interest waned when last time I upgraded.

The latest LyX 1.6.x upgrade broke the whole thing (not sure which).
I never figured out why.

So, I just waited a bit till LyX 2 for the module integration of Sweave.
It just worked out of the box for me.
I'd recommend it to all Win LyX-Sweave users.

Big thanks to Yihui and the other devels working on this.




Re: LyX/Sweave on windows 7

2011-11-04 Thread Yihui Xie
FWIW, here is the repository for the R batchfiles:
http://code.google.com/p/batchfiles/ I'm not familar with Python, and
I hope this could be helpful to our potential Python hackers.

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Fri, Nov 4, 2011 at 4:34 AM, Jean-Marc Lasgouttes  wrote:
> Le 03/11/2011 20:34, Yihui Xie a écrit :
>>
>> 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.
>
> What I would like is to find a windows python hacker who could implement the
> registry searching code of the bat file in our own configure.py. This is
> just a specialized PATH searching routine.
>
> Anyone willing to do that?
>
>


LyX/Sweave on windows 7

2011-11-03 Thread Bruce Kendall
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



Re: LyX/Sweave on windows 7

2011-11-03 Thread Yihui Xie
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




Re: LyX/Sweave on windows 7

2011-11-03 Thread Liviu Andronic
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


LyX/Sweave on windows 7

2011-11-03 Thread Bruce Kendall
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



Re: LyX/Sweave on windows 7

2011-11-03 Thread Yihui Xie
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




Re: LyX/Sweave on windows 7

2011-11-03 Thread Liviu Andronic
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


LyX/Sweave on windows 7

2011-11-03 Thread Bruce Kendall
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



Re: LyX/Sweave on windows 7

2011-11-03 Thread Yihui Xie
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 
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  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
>
>


Re: LyX/Sweave on windows 7

2011-11-03 Thread Liviu Andronic
On Thu, Nov 3, 2011 at 8:34 PM, Yihui Xie  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 
> 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  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