强制停止或停止错误 [英] Force stop or halt on error

查看:148
本文介绍了强制停止或停止错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道有没有人知道如果我正在评估一个区域或缓冲区,R或ESS将停止执行代码的其余部分超出发生错误的点的一个好方法(我只发现相反的请求帮助档案)。我正在查找R帮助文件,但是 option(error = stop)只会停止执行违规功能或语句,但不能执行它们。谢谢!

I was wondering if anyone knew of a good way to get R or ESS to stop executing the rest of the code beyond the point at which an error occurs if I am evaluating a region or buffer (I've only found the opposite request in the help archives). I was looking in the R help files but option(error=stop) will only stop execution of the offending function or statement but not those that follow it. Thanks!

推荐答案

如果R / ESS正在吞噬如此多的计算时间,您的emacs / ESS对Cc Cc无响应,还可以通过从终端发送INTERRUPT信号来保存它。

If R/ESS is hogging up so much compute time that your emacs/ESS is unresponsive to C-c C-c, you can also save it by sending an INTERRUPT signal from the terminal.

首先:使用 top 或者 PS 。 (我的是98490
然后:
kill -2 98490
发送一个中断信号,你得到你的ESS / Emacs和R会话返回

First: figure out R's processID using top or ps. (mine was 98490 Then: kill -2 98490 That sends an interrupt signal and you get your ESS/Emacs and R session back

这篇关于强制停止或停止错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆