[Rpy] SF.net SVN: rpy: [445] branches/rpy_nextgen/rpy/rinterface/rinterface.c

2008-03-16 Thread lgautier
Revision: 445
  http://rpy.svn.sourceforge.net/rpy/?rev=445&view=rev
Author:   lgautier
Date: 2008-03-16 11:12:01 -0700 (Sun, 16 Mar 2008)

Log Message:
---
Unneeded extern (now in R-1.7.0's headers)

Modified Paths:
--
branches/rpy_nextgen/rpy/rinterface/rinterface.c

Modified: branches/rpy_nextgen/rpy/rinterface/rinterface.c
===
--- branches/rpy_nextgen/rpy/rinterface/rinterface.c2008-03-15 21:29:39 UTC 
(rev 444)
+++ branches/rpy_nextgen/rpy/rinterface/rinterface.c2008-03-16 18:12:01 UTC 
(rev 445)
@@ -291,9 +291,6 @@
 "\n\
 Returns the R internal SEXPREC type.");
 
-/*FIXME: own definition. It should probably be in one of
-  R's includes*/
-extern int R_has_slot(SEXP obj, SEXP name);
 
 static PyObject*
 Sexp_do_slot(PyObject *self, PyObject *name)


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


[Rpy] SF.net SVN: rpy: [446] branches/rpy_nextgen/rpy/robjects/__init__.py

2008-03-16 Thread lgautier
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