Re: [Rpy] Rpy on Mac

2008-06-24 Thread Gregory Warnes
On 6/24/08 10:52PM , "Nishant Joshi" <[EMAIL PROTECTED]> wrote: > Referenced from: /Library/Python/2.5/site-packages/libR.dylib Where exactly are your libR.dylib, libRblas.dylib, and libRlapack.dylib files? This doesn¹t look like the standard location... The standard locations on the mac is:

Re: [Rpy] Rpy on Mac

2008-06-24 Thread Warnes, Gregory R.
Hi Nishant, It looks like rpy can¹t locate the R shared library: RuntimeError: dlopen(/Library/Python/2.5/site-packages/_rpy2062.so, 2): Library not loaded: libR.dylib Try locating the libR.dylib file and then placing the exact correct directory in the LD_LIBRARY_PATH environment variable. -Gre

[Rpy] Rpy on Mac

2008-06-24 Thread Nishant Joshi
Hi I am trying to use Rpy for a project. I am using a mac (OS X v 10.5.3) The version of python is 2.5.1, R is 2.6.2 and Rpy is 1.0.3. I followed the instructions in the README and didn't get any errors. However, when I try to import Rpy in Python, I get the following error message, Traceback (mo

Re: [Rpy] rpy memory issues?

2008-06-24 Thread Gregory Warnes
Hi Paul, We could be of more assistance if you included some source code... Are you doing the looping in R or in python? -Greg On 6/23/08 10:32AM , "Jung, Paul" <[EMAIL PROTECTED]> wrote: > I'm having the following issue with rpy. I'm calling r.lm to do a bunch > of regressions (several hun

Re: [Rpy] Preventing R output to stdout

2008-06-24 Thread Laurent Gautier
You can use R's "sink()" It is used in rpy2 to map R's "print" to Python objects' "__str__()". Check lines 84 to 102 at: http://rpy.svn.sourceforge.net/viewvc/rpy/branches/rpy_nextgen/rpy/robjects/__init__.py?view=markup&pathrev=562 2008/6/24 Renato Alves <[EMAIL PROTECTED]>: > Hi, > > I'm runni

[Rpy] Preventing R output to stdout

2008-06-24 Thread Renato Alves
Hi, I'm running a script that does a lot of statistical tests on different sets of data and causes a lot of "unwanted" output like: Warning message: In cor.test.default(c(130L, 414L, 325L, 287L, 232L, 336L, 640L, : Cannot compute exact p-values with ties Warning message: In cor.test.default(c

Re: [Rpy] rpy and mod_python problem

2008-06-24 Thread Toby Hocking
Hi Christof, did you ever resolve this problem? I am experiencing it now, and I was wondering what you did for a solution/workaround. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christof Winter Sent: Wednesday, June 11, 2008 12:58 PM To: rpy-list

Re: [Rpy] rpy memory issues?

2008-06-24 Thread Laurent Gautier
There are two-garbage collection systems at play in rpy (the one from Python and the one from R). It is possible that there is such a problem. Could you share a self-sufficient short piece of code (something that works straight out of a copy/paste and triggers the problem) ? Thanks, L. 2008