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] although different variable assigment, returns same value

2008-05-05 Thread volkan kepoglu
= "c:/temp/easy.R" ... rpy.r.source(t) ... v = rpy.r.sigma ... del rpy.r.sigma ... return v ... >>> a() >>> k() 0.0 >>> a(6) >>> k() 6.0 >>> regards, volkan kepoglu On 5/5/08, Thomas Juntunen <[EMAIL PROTECTED]> wrote: > > On Tu

[Rpy] although different variable assigment, returns same value

2008-04-29 Thread volkan kepoglu
def a(b=0): ... f = open("c:/temp/easy.R", "w") ... f.write ("sigma <- " + str(b)) ... f.close() ... >>> >>> a() #writes "sigma <- 0" in the file, easy.R >>> >>> def r(): ... t = "c:/temp/easy.R&q