[Rpy] SF.net SVN: rpy:[594] branches/rpy_nextgen/rpy/rlike/tests/test_container. py

2008-07-25 Thread lgautier
Revision: 594 http://rpy.svn.sourceforge.net/rpy/?rev=594&view=rev Author: lgautier Date: 2008-07-25 21:36:56 + (Fri, 25 Jul 2008) Log Message: --- - Added testItems - Fixed testCall (no longer passes tests... an explicit call to "dict" on **kwargs seems to be a "featur

[Rpy] Ask two simple questions

2008-07-25 Thread Shulin Zhuang
Dear All, I am new to rpy. Today, I just install rpy, R2.7, python2.5 and can successful use it under windows. Question1: When I test the rpy using the following, I can get the plot, however, the R Graphics will be blank, it does not respond. from rpy import * import math x = range(0, 10) y1 =

[Rpy] How to create logic vectors

2008-07-25 Thread Zhang, Minhua
In R, I could do: > a <- c(1,2,3,4) > smalla <- a<3 > smalla [1] TRUE TRUE FALSE FALSE But how do I create such a variable 'smalla' in python via RPy? Here is what I tried, none works: >>> from rpy import * >>> a = (1,2,3,4) >>> smalla = r(a<3) >>> smalla False >>> smalla = r("a<3") Traceback

Re: [Rpy] Interfacing with Python from R?

2008-07-25 Thread Laurent Gautier
2008/7/25 Matias Piipari <[EMAIL PROTECTED]>: > > > On Fri, Jul 25, 2008 at 8:49 AM, Barry Rowlingson > <[EMAIL PROTECTED]> wrote: >> >> 2008/7/24 Laurent Gautier <[EMAIL PROTECTED]>: >> >> > Unless someone steps forward to help, design and implementation >> > of an R->Python interface may have to

Re: [Rpy] Interfacing with Python from R?

2008-07-25 Thread Matias Piipari
On Fri, Jul 25, 2008 at 8:49 AM, Barry Rowlingson < [EMAIL PROTECTED]> wrote: > 2008/7/24 Laurent Gautier <[EMAIL PROTECTED]>: > > > Unless someone steps forward to help, design and implementation > > of an R->Python interface may have to wait... > > > It should be possible to write some C code,

Re: [Rpy] Interfacing with Python from R?

2008-07-25 Thread Barry Rowlingson
2008/7/24 Laurent Gautier <[EMAIL PROTECTED]>: > Unless someone steps forward to help, design and implementation > of an R->Python interface may have to wait... It should be possible to write some C code, link to libpython and use the python C api (http://docs.python.org/api/api.html) with the