Dear list,
PythonWin 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32.
Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
>>>
>>> import rpy
>>>
>>> rpy.r.version # rpy-1.0.1-R-1.3.0-to-2.6.1-Numpy-win32-py2.5
{'status': '', 'major': '2', 'version.string': 'R version 2.6.1
(2007-11-26)', 'language': 'R',
'os': 'mingw32', 'svn rev': '43537', 'system': 'i386, mingw32', 'month':
'11', 'platform': 'i386-pc-mingw32',
'year': '2007', 'arch': 'i386', 'day': '26', 'minor': '6.1'}
>>>
>>> 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"
... rpy.r.source(t)
... v = rpy.r.sigma
... return v
...
>>> r()
0.0
>>> a(5) # "sigma <- 5"
>>> r()
0.0
>>> # why? it should be 5.0, shouldn't be?
>>>
Is it a bug or,
Is there any explanation for this,
Or my mistake, any comment???
It is not a big deal. There are other several ways to return sigma,
but it becomes strange to me. That's why I am asking. Just curiosity.
Regards,
PHD Candidate
Volkan Kepoglu
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list