Hello again,

Today I was trying to port my phyper from the high-level interface to the 
low-level interface. My problem is again how I map the arguments with dot. 
According to the documentation I should be able to use the special **Kwargs 
again. But I have no idea how to do this. I tried directly but it obviously 
didn't work because the function was expecting Sexp_Type object. Can 
someone give some light on this.

Also is there any easy way to pass four parameters to phyper without 
needing to create four Sexp_Type vectors individually?

Thanks in advance,
Bruno 

2010/2/2 B.A.D.C.M.D Santos <bac...@cam.ac.uk>
Thank you Laurent. I had completely forget that solution. It seems to be
working know, although I am getting some weird values. But I think the
problem is on my script.

Thank you very much,
Bruno


2010/2/2 Laurent Gautier <lgaut...@gmail.com>
On 2/2/10 12:40 PM, B.A.D.C.M.D Santos wrote:
Hello everyone,

I am currently using rpy2 in order to use phyper function from R into my
Python script. Nevertheless I have a problem because I want to use the
argument log.p=TRUE. The last time I checked there was a problem with the
mapping of the arguments with dots in the middle. Is this still a bug? If
it is, is there any workaround to solve this?

Did the link given earlier work for you ?
http://www.mail-archive.com/rpy-list@lists.sourceforge.net/msg02313.html



Or does the new rpy2 alpha
solves this problem?

It does provide a syntactic sugar for this. You can read more at:
http://rpy.sourceforge.net/rpy2/doc-2.1/html/robjects.html#functions
(the doc also tells to make a blind 'turn "." into "_"' function)


Hoping this helps,


L.




I am using:
Python 2.6.4
R version 2.10.1
rpy2 2.0.4

Thanks in advance,
Bruno

------------------------------------------------------------------------------ 
The Planet: dedicated and managed hosting, cloud storage, colocation Stay 
online with enterprise data centers and the best network in the business 
Choose flexible plans and management services without long-term contracts 
Personal 24x7 support from experience hosting pros just a phone call away. 
http://p.sf.net/sfu/theplanet-com 
_______________________________________________ rpy-list mailing list 
rpy-list@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------ 
The Planet: dedicated and managed hosting, cloud storage, colocation Stay 
online with enterprise data centers and the best network in the business 
Choose flexible plans and management services without long-term contracts 
Personal 24x7 support from experience hosting pros just a phone call away. 
http://p.sf.net/sfu/theplanet-com 
_______________________________________________ rpy-list mailing list 
rpy-list@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to