Wednesday, May 26, 2010

Interrupting R processes in Ubuntu

Interrupting R processes in Ubuntu: "
  • Pressing Ctrl+C should work in the terminal.
  • If that doesn't work, open another terminal console and type
    ps aux | grep R

    kill -s INT PID
  • The first line allows you to discover the PID number of your particular R instance, which is then used in the second line.
  • In the second line above, INT may be replaced by HUP in some cases.
  • The above methods set up an alert-thing to tell the program to stop. When the computations are done externally of R, it can't be executed before the external codes checks back with R. If the external code doesn't do this regularly or at all, killing the entire program is the only way out. If none of the above work, this is probably what has happened and it may be a good idea to let the package author know about the problem..."