New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run() should not print interrupt as error #148

Closed
gaborcsardi opened this Issue Jul 27, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@gaborcsardi
Member

gaborcsardi commented Jul 27, 2018

Because it is not an error. It should just do what interrupt does.

@gaborcsardi gaborcsardi added this to the 3.2.0 milestone Jul 27, 2018

@gaborcsardi

This comment has been minimized.

Member

gaborcsardi commented Jul 27, 2018

I can't find a way to re-throw the interrupt, unfortunately, without the error being printed....

tryCatch(Sys.sleep(10), interrupt = function(e) stop(e))
^C

Error in stop(e) : bad error message
@gaborcsardi

This comment has been minimized.

Member

gaborcsardi commented Jul 28, 2018

Luke Tierney helped me out with this, the solution is invokeRestart("abort").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment