Can anyone tell how can I interrupt a running script in R?
Let\'s say I have an infinite loop or some other problem, and I want to stop the script from running. Is
Control-C works, although depending on what the process is doing it might not take right away.
If you're on a unix based system, one thing I do is control-z to go back to the command line prompt and then issue a 'kill' to the process ID.