Laurent, >> >> now my problem is that I can no longer do something like (for example): >> >> Line_(matrix_(unlist_([point for point in line]), nrow = X, byrow=True)) >> >> because I get a ValueError: All parameters must be of type Sexp_Type. > > Guessing from the example above (note: self-contained examples are > often better as they let one run the example), this is because _Line > was gotten from the low-level interface. good point... I will try to keeps things more self contained next time... > > (And your report made me see that there is an issue in rpy2.robjects: > REnvironment.get() should accept the named parameter 'wantFun'). Yes, this would be quite nice ;-) > > Workarounds are either: > > - You can convert all parameters passed to Line into objects > inheriting from rinterface.Sexp > > - You do: > Line_ = robjs.conversion.ri2py(rint.globalEnv.get("Line", wantFun=True)) I went with this one, as the first workaround would require quite a bit of reworking... and as usual, your suggestion worked great, thanks!
Carson ------------------------------------------------------------------------------ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list