On 08/10/10 20:27, Laurent Gautier wrote:
On 08/10/10 19:36, pat flaherty wrote:

If I wanted I could maybe make a short research project out of why rpy2 2.2 doesn't work with Windows (perhaps particularly Windows 7) but I decided for the time being to get on with R.

The windows install kit (from sourceforge) for rpy2 2.0.8 installs into python 2.6.5 on my machine. In preliminary tests, Robjects has worked without problem.

However when I use Rinterface, I get the following problem with attribute baseenv:

d:\use>python
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2.rinterface as ri
>>> ri.initr()
0
>>> matrix = ri.baseenv["matrix"]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'baseenv'
>>> quit()

I imagine some notion of the R environments must be in there somewhere, but where, and under what name?

Did you consider browsing the documentation for the 2.0.x series ?
A link to it is conveniently located on the page of project about documentation:
http://rpy.sourceforge.net/rpy2_documentation.html

On a second look, I realised that the documentation for the 2.0.x is even worse than what I remembered and I dashed too quickly to a Read The Fine Manual type of answer.

By default, there no specific environment for base (and no feature for having a namespace per module on the Python side).

Try:
robjects.r("base::matrix")



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to