Re: [Rpy] export a package of R in python program

2010-04-07 Thread Brandon Invergo
il 7, 2010 9:50:25 PM Subject: Re: [Rpy] export a package of R in python program Hi I have already done this because each package has different suffix which shows the version of the package. I imported in the program both of them but since the name of the function is the same in both and it

Re: [Rpy] export a package of R in python program

2010-04-07 Thread Sean Davis
On Wed, Apr 7, 2010 at 3:50 PM, zahra sheikhbahaee wrote: > Hi > > I have already done this because each package has different suffix which > shows the version of the package. I imported in the program both of them but > since the name of the function is the same in both and it needs different > p

Re: [Rpy] export a package of R in python program

2010-04-07 Thread zahra sheikhbahaee
Hi I have already done this because each package has different suffix which shows the version of the package. I imported in the program both of them but since the name of the function is the same in both and it needs different parameters in each one, it makes a big mistake. I figured out that even

Re: [Rpy] export a package of R in python program

2010-04-07 Thread Sean Davis
On Wed, Apr 7, 2010 at 12:48 PM, zahra sheikhbahaee wrote: > Hi > > how could I add a function from old version to new one and then call it in > my program as being accessible by it? You would need to add the code to the R directory in the package source. Then, if the package has a NAMESPACE, yo

Re: [Rpy] export a package of R in python program

2010-04-07 Thread Brandon Invergo
There's no way of specifying versions in R's library() function, so I'm assuming that if you successfully have both versions of the package installed in R, they must have different names (I'm pretty sure installing a new version of a package overwrites the previous version). If that's the case,

Re: [Rpy] export a package of R in python program

2010-04-07 Thread zahra sheikhbahaee
Hi how could I add a function from old version to new one and then call it in my program as being accessible by it? Zahra. On Wed, Apr 7, 2010 at 6:39 PM, Sean Davis wrote: > On Wed, Apr 7, 2010 at 12:26 PM, zahra sheikhbahaee > wrote: > > Hi, > > > > I am using a package of R in my python co

Re: [Rpy] export a package of R in python program

2010-04-07 Thread Sean Davis
On Wed, Apr 7, 2010 at 12:26 PM, zahra sheikhbahaee wrote: > Hi, > > I am using a package of R in my python code. I have to import two versions > of package in my program, because there is a function in one of them which > does not exist in the new version. The problem is that, afterward I want to