I'm rather new to RPY, but have a lot of experience with R and Python.  What I want to do is something like this.....
 
import rpy
 
#do a bunch of R calls that use up a bunch of memory like x <- matrix(0,2000,2000) 200 times. 
#then R eventually says that it cannot allocate a vector of X size because of memory fragmentation.
#so then I kill the rpy process and start over.
 
#to remove it?
del(rpy.r)
 
#or
del(rpy)
 
#then maybe?
import rpy
 
#and/or
rpy.r = rpy.R()
 
#but then I get RuntimeError: Only one R object may be instantiated per session
 
#Basically the problem is that I need to get ride of my R object and start over.  Can I do this?  Thanks.

Ben Stabler

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to