Testing that state isn't shared between two Rserve connections using pyRserve:
>>> import pyRserve
>>> conn1 = pyRserve.connect(host='localhost', port=6311)
>>> conn2 = pyRserve.connect(host='localhost', port=6311)
>>> conn1.eval('x<-function(n){n**2}')
>>> conn1.r.x(2)
4.0
>>> conn2.r.x(2)
Traceback (most recent call last):
File "<input>", line 1, in <module>
conn2.r.value
File "/python3.6/site-packages/pyRserve/rconn.py", line 308, in __getattr__
'defined in Rserve' % realname)
NameError: no such variable or function "x" defined in Rserve