Re: [Rpy] way to let rpy2 to plot through OSX quartz?

2009-11-19 Thread Laurent Gautier
I am not certain to follow your reasoning, and to demonstrate by the example I just opened a quartz interactive device, and made plots in it, with the following install: - OS X Leopard - Python 2.6 (from MacPorts) - R 2.10 (from CRAN, that's a Framework build) - rpy2 (compiled from source) L.

Re: [Rpy] way to let rpy2 to plot through OSX quartz?

2009-11-19 Thread Virgil Griffith
Only framework builds of python can plot to a quartz device, do things like MacPorts and Fink can't do it. However, everything else can (Apple's python, Enthought, ActiveState) By default matplotlib, ReInteract, as well as R itself, plot to a Quartz device. So it seems like it shouldn't be too h

Re: [Rpy] problem when using chisq.test in rpy2

2009-11-19 Thread Laurent Gautier
I have forgotten one line before 'chisq_test = ro.r(code)': code = ''.join(code) L. Hao Fan wrote: > Cool, I will try the new source. Thanks a lot! > > > Hao > > >> This will not work. >> >> Since the problem was fixed in the R source, what about just using it ? >> >> # --- >> import urll

Re: [Rpy] problem when using chisq.test in rpy2

2009-11-19 Thread Hao Fan
Cool, I will try the new source. Thanks a lot! Hao > > This will not work. > > Since the problem was fixed in the R source, what about just using it ? > > # --- > import urllib > page = > urllib.urlopen("https://svn.r-project.org/R/branches/R-2-10-branch/src/library/stats/R/chisq.test.R";)

Re: [Rpy] way to let rpy2 to plot through OSX quartz?

2009-11-19 Thread Laurent Gautier
There might not be so much experience with that (as I recollect issues with the combo Enthought Python / rpy2, at least until recently). Are you certain to plot into a Quartz device ? Unless you open one, the default is to open an X11 window (I think). L. Virgil Griffith wrote: > I've success

Re: [Rpy] problem when using chisq.test in rpy2

2009-11-19 Thread Laurent Gautier
This will not work. Since the problem was fixed in the R source, what about just using it ? # --- import urllib page = urllib.urlopen("https://svn.r-project.org/R/branches/R-2-10-branch/src/library/stats/R/chisq.test.R";) code = page.readlines() chisq_test = ro.r(code) # this will now work #

Re: [Rpy] problem when using chisq.test in rpy2

2009-11-19 Thread Hao Fan
Hi, Laurent and list, Thanks a lot for all the informations! I read through your discussions at https://stat.ethz.ch/pipermail/r-devel/2009-November/055701.html So it is a R problem not rpy. :-) I tried to work around this problem using the following code: -

[Rpy] way to let rpy2 to plot through OSX quartz?

2009-11-19 Thread Virgil Griffith
I've successfully installed rpy2 against the Enthought Python distribution (a framework build of python). Has anyone gotten plotting via Quartz to work? Every time I plot via X11 the machine likes to hang for a 15 seconds ): If no one has done this but has an idea about how to go about it I'd be

Re: [Rpy] problem when using chisq.test in rpy2

2009-11-19 Thread Laurent Gautier
This seems fixed in R-devel (r50493), and the fix will be included in R-2.10.1 L. Laurent Gautier wrote: > > As suspected this is a problem in the R function chisq.test() > (and this also at the R level). > > https://stat.ethz.ch/pipermail/r-devel/2009-November/055701.html > > > > L. >

Re: [Rpy] problem when using chisq.test in rpy2

2009-11-19 Thread Laurent Gautier
As suspected this is a problem in the R function chisq.test() (and this also at the R level). https://stat.ethz.ch/pipermail/r-devel/2009-November/055701.html L. Laurent Gautier wrote: > This is odd. > When looking at what is happening, the problem is likely rooted in > the use of deparse(