Re: [Rpy] R NULL value

2010-12-06 Thread Moritz Beber
On 12/06/2010 10:46 PM, Laurent Gautier wrote: > On 12/6/10 10:26 PM, Laurent Gautier wrote: >> On 12/6/10 7:17 PM, Moritz Beber wrote: > (...) >>> I found NULL in rpy2.robjects.constants but its type is>> 'rpy2.rinterface.Sexp'> whereas the returned NULL value has a type of >>> . Unfortunately, ca

Re: [Rpy] R NULL value

2010-12-06 Thread Laurent Gautier
On 12/6/10 10:26 PM, Laurent Gautier wrote: > On 12/6/10 7:17 PM, Moritz Beber wrote: (...) >> I found NULL in rpy2.robjects.constants but its type is> 'rpy2.rinterface.Sexp'> whereas the returned NULL value has a type of >> . Unfortunately, calling bool on >> the returned RObject evaluates to True

Re: [Rpy] R NULL value

2010-12-06 Thread Laurent Gautier
On 12/6/10 7:17 PM, Moritz Beber wrote: > Dear list members, > > in order to make sure that the return value of an rpy2 function is not > NULL, I need access to the R NULL singleton to perform the comparison. > In the new features section > http://rpy.sourceforge.net/rpy2/doc-2.2/html/changes.html,

[Rpy] R NULL value

2010-12-06 Thread Moritz Beber
Dear list members, in order to make sure that the return value of an rpy2 function is not NULL, I need access to the R NULL singleton to perform the comparison. In the new features section http://rpy.sourceforge.net/rpy2/doc-2.2/html/changes.html, I find exactly what I want: rpy2.rinterface.NULL.