On 24/01/11 23:34, Kyle Covington wrote:
> Hi everyone,
>
> I noticed that rpy2 is segfaulting when I execute the following code;
>
> import rpy3.robjects as ro
> ro.r('iris') #just to check that it's working
>
> ro.r('quit("no")')
>
> I suppose I could just leave R open and that it would be closed when
> Python closes but I just wanted to be clean about shutting everything down.

Closing R will terminate the host process, which by default will be your 
Python process, and you won't be able to do further cleaning after that.

The segfault might a problem in rpy2, and you may want to file an entry 
in the issue tracker on bitbucket.

> Is there an rpy2 function that replaces R's quit for use in rpy2?

http://rpy.sourceforge.net/rpy2/doc-2.2/html/rinterface.html?highlight=initr#ending-r




L.


> Thanks
> Kyle
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
>
>
>
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to