Re: [Rpy] Using rpy2 with lib-apache2-mod-python

2008-10-20 Thread Eric Bell
Resolved ... or a least made to go away. It appears that the problem was caused in part due to loading another apache module supplied by R/Apache, as described at http://biostat.mc.vanderbilt.edu/rapache/ "R/Apache is a project dedicated to embedding the R interpreter inside the Apache 2.0 (and be

Re: [Rpy] Using rpy2 with lib-apache2-mod-python

2008-10-20 Thread Eric Bell
I performed the unit testing and here are my results: Note: Software Versions: R 2.7.2 Python 2.5.1 $ python Python 2.5.1 (r251:54863, Jul 31 2008, 23:17:40) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more informa

Re: [Rpy] Using rpy2 with lib-apache2-mod-python

2008-10-20 Thread Eric Bell
No change in behavior. I've simplifed my python script and added the import rpy2.rinterface as instructed. I've stopped and started the apache server as appropriate voodoo. Seems to me if I can't execute the library() call then it makes sense that R functionality in the non-base libraries won't be

[Rpy] great initial results for rpy2

2008-10-20 Thread laurent oget
I have been playing with rpy2 for a few days and migrated a batch process from rpy to rpy2. I do not have any hard numbers yet but I am already happy to report that: -the mysterious crash i experience with rpy (a workaround for which was to call gc() before creating a new dataframe) is not hapenni

Re: [Rpy] Using rpy2 with lib-apache2-mod-python

2008-10-20 Thread laurent
On Mon, 2008-10-20 at 12:39 -0700, Eric Bell wrote: > No change in behavior. I've simplifed my python script and added the > import rpy2.rinterface as instructed. I've stopped and started the > apache server as appropriate voodoo. No change was expected: '--verbose' instructs R to tell a bit mor

Re: [Rpy] Using rpy2 with lib-apache2-mod-python

2008-10-20 Thread laurent
On Mon, 2008-10-20 at 09:55 -0700, Eric Bell wrote: > I want to be able to call R from python scripts that are being executed > via lib-apache2-mod-python. Should this be doable? In theory, yes. It might have limited testing, still. > My python script can access some R functionality but it is v

Re: [Rpy] rpy2: problem with the delegating attribute (.r) and the power operator

2008-10-20 Thread laurent
On Mon, 2008-10-20 at 18:34 +0200, Robert Nuske wrote: > Hi there, > > the documentation of rpy2 claims that the delegating attribute (.r) can be > used with a whole number of operators, the power operator (**) being one of > them. Deceptive claim. I must have been distracted while implement

[Rpy] SF.net SVN: rpy:[661] branches/rpy_nextgen

2008-10-20 Thread lgautier
Revision: 661 http://rpy.svn.sourceforge.net/rpy/?rev=661&view=rev Author: lgautier Date: 2008-10-20 18:37:54 + (Mon, 20 Oct 2008) Log Message: --- Bug fix: __pow__ was missing from the delegator object for robjects.RVector (while the documentation was claiming it was

[Rpy] Using rpy2 with lib-apache2-mod-python

2008-10-20 Thread Eric Bell
I want to be able to call R from python scripts that are being executed via lib-apache2-mod-python. Should this be doable? My python script can access some R functionality but it is very limited. It *appears* that only the functionality in the base R package is being loaded. from

[Rpy] rpy2: problem with the delegating attribute (.r) and the power operator

2008-10-20 Thread Robert Nuske
Hi there, the documentation of rpy2 claims that the delegating attribute (.r) can be used with a whole number of operators, the power operator (**) being one of them. All arithmetic operators but the power operator work for me. I have no clue what I am doing wrong with regard to the power oper

Re: [Rpy] rpy 1.0.3 wants Rdevices.h, but R 2.8.0 (beta) has none to give

2008-10-20 Thread Dirk Eddelbuettel
On 20 October 2008 at 11:42, laurent oget wrote: | I have built and used Rpy2 on ubuntu so it can be done, however the | API are different and replacing rpy with rpy2 in ubuntu packages will | break a lot of code using rpy. Sure, but that wasn't the question. The question was about rpy (v1) now

Re: [Rpy] rpy and rpy2 debian/ubuntu packages

2008-10-20 Thread laurent
On Mon, 2008-10-20 at 17:08 +0100, Peter wrote: > On Mon, Oct 20, 2008 at 4:42 PM, laurent oget <[EMAIL PROTECTED]> wrote: > > > > I have built and used Rpy2 on ubuntu so it can be done, however the > > API are different and replacing rpy with rpy2 in ubuntu packages will > > break a lot of code

Re: [Rpy] rpy 1.0.3 wants Rdevices.h, but R 2.8.0 (beta) has none to give

2008-10-20 Thread Warnes, Gregory R.
I will try to update rpy to work with R 2.8 later this week. Feel free to remind me if you don't see anything by Thursday evening. -Greg -Original Message- From: laurent oget [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 11:43 AM To: RPy help,support and design discussion lis

[Rpy] rpy and rpy2 debian/ubuntu packages

2008-10-20 Thread Peter
On Mon, Oct 20, 2008 at 4:42 PM, laurent oget <[EMAIL PROTECTED]> wrote: > > I have built and used Rpy2 on ubuntu so it can be done, however the > API are different and replacing rpy with rpy2 in ubuntu packages will > break a lot of code using rpy. > > Laurent Laurent is right - simply switching

Re: [Rpy] rpy 1.0.3 wants Rdevices.h, but R 2.8.0 (beta) has none to give

2008-10-20 Thread laurent oget
I have built and used Rpy2 on ubuntu so it can be done, however the API are different and replacing rpy with rpy2 in ubuntu packages will break a lot of code using rpy. Laurent 2008/10/19 Michael Rutter <[EMAIL PROTECTED]>: > Hello, > > I was spending a lazy Sunday afternoon testing the new R 2.8

Re: [Rpy] rpy 1.0.3 wants Rdevices.h, but R 2.8.0 (beta) has none to give

2008-10-20 Thread laurent
On Sun, 2008-10-19 at 19:23 -0400, Michael Rutter wrote: > Hello, > > I was spending a lazy Sunday afternoon testing the new R 2.8.0 beta in > terms of building packages under Intrepid Ibex. Things we going fine > until I tried to build rpy, and I received the following error: > > src/RPy.h: