[Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Bo Peng
Dear list, Rpy is a python module that provides python interface to R. The following simple commands from rpy import * r.plot(0) is supposed to create a window that displays the result of plot(0). However, we observe that 1. Under *nix, rpy+R+python work as expected 2. Under windows, python

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Prof Brian Ripley
How is Rpy calling R? Presumably R is running single-threaded, and the problem is likely to be that Rpy is using blocking I/O on the R process and hence blocking the GUI callbacks that drive the window. The not-so-simple answer is not to do it that way. It might be well sufficient to turn

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Bo Peng
On 1/9/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: How is Rpy calling R? Presumably R is running single-threaded, and the problem is likely to be that Rpy is using blocking I/O on the R process and hence blocking the GUI callbacks that drive the window. The not-so-simple answer is not to

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Hin-Tak Leung
Hi, (off topic slightly, and a slight flame-bait...). I don't have an answer or clue to your question, but I have played with PSPython briefly and it did work somewhat for me (and I have not heard of rpy until reading this through r-devel), and I was wondering what is the difference between rpy

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Bo Peng
I was wondering what is the difference between rpy and RSPython. The main difference is that rpy does one-way communication, is simpler than RSPython, than is easier to use. So I have a question for you - why rpy instead of RSPython? Have you tried both, and can you give a comparison of pros

Re: [Rd] R plot display problem under windows when using python rpy module.

2006-01-09 Thread Hin-Tak Leung
Thanks a lot for the comment and discussion. A few of mine below. Bo Peng wrote: snipped older inserts The main difference is that rpy does one-way communication, is simpler than RSPython, than is easier to use. snipped older inserts I am not an expert on RSPython. I tried RSPython and rpy