Re: [Rpy] R function written with python can't work as parameter in R

2012-03-04 Thread Laurent Gautier
On 2012-03-03 16:52, Fangyu He wrote: Hi everyone, I want to create a R function which can be used as a parameter in the function "outer", I tried the rternalize way which expose python function to R. However, it doesn't work, the following being the problems which I encountered. impor

[Rpy] R function written with python can't work as parameter in R

2012-03-03 Thread Fangyu He
Hi everyone, I want to create a R function which can be used as a parameter in the function "outer", I tried the rternalize way which expose python function to R. However, it doesn't work, the following being the problems which I encountered. import rpy2.rinterface as ri seq = ri.gl