Revision: 446
http://rpy.svn.sourceforge.net/rpy/?rev=446&view=rev
Author: lgautier
Date: 2008-03-16 11:14:04 -0700 (Sun, 16 Mar 2008)
Log Message:
---
- fixed R objects representation
- wrap the result of subsetting (to match what is done in the rest of the
module)
Modified Paths:
--
branches/rpy_nextgen/rpy/robjects/__init__.py
Modified: branches/rpy_nextgen/rpy/robjects/__init__.py
===
--- branches/rpy_nextgen/rpy/robjects/__init__.py 2008-03-16 18:12:01 UTC
(rev 445)
+++ branches/rpy_nextgen/rpy/robjects/__init__.py 2008-03-16 18:14:04 UTC
(rev 446)
@@ -74,12 +74,12 @@
r.sink()
s = r.readLines(tmp)
r.close(tmp)
-s = str.join(os.linesep, s)
+s = str.join(os.linesep, s._sexp)
return s
def __repr__(self):
s = r.deparse(self)
-s = str.join(os.linesep, s)
+s = str.join(os.linesep, s._sexp)
return s
@@ -112,7 +112,7 @@
return res
def __getitem__(self, i):
-res = self._sexp[i]
+res = mapperPy2R(self._sexp[i])
return res
def __add__(self, x):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list