[Rpy] Confusing Bug; 'import gtk' causing rpy to misbehave?!

2006-10-20 Thread Reidar Strand Hagen
import rpy rpy.r.library("rpart") rpy.r.library("MASS") stat = "rpart(syct~.,cpus,xval=10,minsplit=2,cp=1e-3)" stat2 = "rpart(syct~.,cpus,xval=10,minsplit=2,cp=0.01)" # working as expected now fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 7 # still working

[Rpy] Problems with rpy import in Debian

2006-10-20 Thread Felipe Ortega
Hello. I've got an error trying to import rpy in Debian (not in Windows, like some previous messages pointed out). The error message is: Python 2.3.5 (#2, Nov 20 2005, 16:40:39) >>> import rpy RHOME= /usr/lib/R RVERSION= 2.3.1 RVER= 2031 RUSER= /root Loading Rpy version 2031 .. Traceback (most r

Re: [Rpy] Problems with rpy import in Debian

2006-10-20 Thread Dirk Eddelbuettel
On 20 October 2006 at 12:46, Felipe Ortega wrote: | I've got an error trying to import rpy in Debian (not | in Windows, like some previous messages pointed out). | | The error message is: | | Python 2.3.5 (#2, Nov 20 2005, 16:40:39) | >>> import rpy | RHOME= /usr/lib/R | RVERSION= 2.3.1 ^

Re: [Rpy] Confusing Bug; 'import gtk' causing rpy to misbehave?!

2006-10-20 Thread Mario Beauchamp
Hi Reidar, On 10/20/06, Reidar Strand Hagen <[EMAIL PROTECTED]> wrote: > > anybody smarter than me got any clue what's going on? I have experienced similar strange behaviors when mixing gtk and rpy. It may be that the gtk initialisation is interfering with rpy's. When those are preloaded (ie with