[Rpy] loading an Rda file via rpy2 under mod_python

2009-01-19 Thread Rajarshi Guha
Hi, I'm using rpy2 (2.0.1) in a mod_python script. Various rpy2 methods work fine but when I try to call R's "load" command I get RRunTime error saying that a connection cannot be opened. An example can be seen at http://rguha.ath.cx/~rguha/cicc/rest/predict/YzFjY2NjYzFDT0ND Using import r

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-14 Thread Rajarshi Guha
On Wed, Jan 14, 2009 at 10:26 AM, Laurent Gautier wrote: > > Your output from > r_listdir = robjects.r('''file.info(dir("/where/the/file/is"))''') > > is an empty directory. (?!) Try going up the directory structure and see if > any directory can be listed. Indeed, looking at some top level dirs

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-14 Thread Laurent Gautier
Rajarshi Guha wrote: > > > On Wed, Jan 14, 2009 at 8:33 AM, Laurent Gautier > wrote: > > Well, it does not crash (segfault, only rumbles remaining), > it just throws an exception about being unable to open the > connection. ;-) > > > Did you try to o

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-14 Thread Volkan Kepoglu
i think rinterp("""load('test-model.Rda')""") should be like this: rinter("""load('test-model.Rdata')""") worked in win. On 1/14/09, Rajarshi Guha wrote: > Hi, I'm using rpy2 (2.0.1) in a mod_python script. Various rpy2 methods work > fine but when I try to call R's "load" command I get RRunT

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-14 Thread Rajarshi Guha
On Wed, Jan 14, 2009 at 8:33 AM, Laurent Gautier wrote: > Well, it does not crash (segfault, only rumbles remaining), > it just throws an exception about being unable to open the connection. ;-) > > > Did you try to output to you webpage the outcome of: > > print(robjects.r('''file.info(dir("/whe

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-14 Thread Laurent Gautier
Well, it does not crash (segfault, only rumbles remaining), it just throws an exception about being unable to open the connection. ;-) Did you try to output to you webpage the outcome of: print(robjects.r('''file.info(dir("/where/the/file/is"))''')) ? Rajarshi Guha wrote: > > > On Wed, Ja

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-14 Thread Rajarshi Guha
On Wed, Jan 14, 2009 at 2:50 AM, Laurent Gautier wrote: > Wouldn't the working dir in which the process is running matter ? > > Using an absolute path might be indicated. Yes, I had thought of that. Interesting when I try and the read the using Python data = open('/ful/path/test-data.Rda').rea

Re: [Rpy] loading an Rda file via rpy2 under mod_python

2009-01-13 Thread Laurent Gautier
Wouldn't the working dir in which the process is running matter ? Using an absolute path might be indicated. L. Rajarshi Guha wrote: > Hi, I'm using rpy2 (2.0.1) in a mod_python script. Various rpy2 methods > work fine but when I try to call R's "load" command I get RRunTime error > saying

[Rpy] loading an Rda file via rpy2 under mod_python

2009-01-13 Thread Rajarshi Guha
Hi, I'm using rpy2 (2.0.1) in a mod_python script. Various rpy2 methods work fine but when I try to call R's "load" command I get RRunTime error saying that a connection cannot be opened. An example can be seen at http://rguha.ath.cx/~rguha/cicc/rest/predict/YzFjY2NjYzFDT0ND Using import rpy2.ro