Hi everyone,

I was working with some older code that requires both numpy and rpy2.
I downloaded the latest version of rpy2, and after failing to get the
program to run, I received a suggestion to try adding:

rpy2.robjects.activate()

import rpy2.robjects
import rpy2.robjects.numpy2ri

however, in the latest version of rpy2 I cannot find any activate function?

In [1]: import rpy2

In [2]: rpy2.__version__
Out[2]: '2.2.2'

In [3]: import rpy2.robjects

In [4]: import rpy2.robjects.numpy2ri

In [5]: rpy2.robjects.activate()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/federicov/<ipython-input-5-691ca57cf644> in <module>()
----> 1 rpy2.robjects.activate()

AttributeError: 'module' object has no attribute 'activate'

Am I missing something really obvious?

Thank you very much,

Federico

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to