Rewriting function signatures in order to replace '.' with '_' is 
something that is ichting me, but which I would like to happen a safe 
way. For example, what if a function signature has both 'foo.bar' and 
'foo_bar' in its list of parameters ?

I have already started with having semi-static (that is when attaching 
the R package) name conversion for objects in R packages. This allows a 
little more control regarding where an object comes from. Example:

stats = importr('stats')
stats.lm(f, myframe)

http://rpy.sourceforge.net/rpy2/doc-dev/html/robjects.html#r-packages


I am considering extending by seeing if semi-static function signature 
would work... input / disgreement / else would be read with attention.



L.



Nathaniel Smith wrote:
> On Tue, Sep 29, 2009 at 5:28 PM, Gary Strangman
> <str...@nmr.mgh.harvard.edu> wrote:
>>>>> rpy2.robjects.r.lm(f,myframe, na.action=NULL)  # fails; "keyword can't be 
>>>>> an expression"
>>>>> rpy2.robjects.r.lm(f,myframe, na_action=NULL)  # fails; "extra arguments 
>>>>> na_action are just disregarded"
> 
> The underscore version works in rnumpy. In robjects, I think it's:
>   lm.rcall(([None, f], [None, myframe], ["na.action", NULL]))
> or maybe a slightly nicer (?) version would be:
>   lm(f, myframe, **{"na.action": NULL})
> 
> -- Nathaniel
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to