How can I interrupt a running code in R with a keyboard command?

后端 未结 4 2061
广开言路
广开言路 2020-12-02 12:12

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

4条回答
  •  一向
    一向 (楼主)
    2020-12-02 12:13

    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.

提交回复
热议问题