Re: [Rpy] creating lists with rinterface

2009-04-24 Thread laurent
On Thu, 2009-04-23 at 22:59 -0700, Nathaniel Smith wrote: > Okay, revise that... after a closer look at the internals manual, I > realized that lists are VECSXP, not LISTSXP. Silly me, don't know how > I could have mixed that up. Also numpy2ri.py got fixed at some point. > > So the only real bug

Re: [Rpy] creating lists with rinterface

2009-04-23 Thread Nathaniel Smith
Okay, revise that... after a closer look at the internals manual, I realized that lists are VECSXP, not LISTSXP. Silly me, don't know how I could have mixed that up. Also numpy2ri.py got fixed at some point. So the only real bug is that newSEXP is still failing to trigger an exception, which shoul

[Rpy] creating lists with rinterface

2009-04-23 Thread Nathaniel Smith
I just noticed that import rpy2.rinterface as ri s_int = ri.SexpVector([1], ri.INTSXP) # works s_list = ri.SexpVector([s_int], ri.LISTSXP) # appears to work, but the R object is NULL/Nil Two issues here: 1) It looks like rinterface.c:newSEXP is trying to throw an exception rather than sil