Bugs item #2776713, was opened at 2009-04-20 22:24
Message generated for change (Settings changed) made by lgautier
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2776713&group_id=48422
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: rpy2
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Daniel Yuan (xiaoniao)
Assigned to: lgautier (lgautier)
Summary: ungraceful quit from R
Initial Comment:
I was surprised by the following behavior on quitting an R session in rpy2
(v2.0.3)
xn...@work:~> python
Python 2.5.2 (r252:60911, Nov 26 2008, 00:44:29)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2.robjects as robjects
>>> r = robjects.r
>>> print r('a <- 1')
[1] 1 ## : fine
>>> print r('q(save="no")') ## : problem:
xn...@work:~> ## : dumped out of both R and python
Is there a way to quit R and return to the python interpreter?
Thanks.
----------------------------------------------------------------------
>Comment By: lgautier (lgautier)
Date: 2009-06-22 23:00
Message:
Version 2.1-dev is providing a callback mechanism to control what is
happening upon R exit.
It is currently experimental, but trying it early may help having it do
what you would like it to do.
----------------------------------------------------------------------
Comment By: Daniel Yuan (xiaoniao)
Date: 2009-04-21 05:40
Message:
ok. But just to be clear, the issue quite definitely dumps me out of the
python interpreter and into the bash shell.
I forgot to mention: this is R v2.8-0.
----------------------------------------------------------------------
Comment By: lgautier (lgautier)
Date: 2009-04-21 04:05
Message:
It's an issue (and will remain so until something get worked out, possibly
using ptr_R_CleanUp() ).
PS: You do not appear to ever "leave the Python interpreter" (so need to
return to it) in your example.
PPS: Bug reports are for bugs, questions are answered on the mailing-list
;-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2776713&group_id=48422
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list