0

I am using rpy2 to execute R from ipython. However I want to kill or stop the embedded R process but Ctrl-C is not working.

This is maybe because ipython intercepts SIGINT (I am not sure)..

I tested with SIGSTOP (Ctrl+Z) and it works..

Any method to terminate the embedded process (R/rpy2) without killing the ipython/python session?

Thanks

1

1 Answer 1

0

When in Python, it is possible to interrupt R code with SIGINT (see unitest with SIGINT in rpy2), to the extent that this R code is not a call to C not checking interruption signals (and in that case it would not be possible to interrupt the same code when in R).

I am unsure about what is happening with iPython.

Sign up to request clarification or add additional context in comments.

1 Comment

I found a new PR (merged by you, right?). It would be better to update this answer after a new version is released (maybe 3.5.0), for people who is led to this question like me. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.