Force stop or halt on error

后端 未结 3 1142
日久生厌
日久生厌 2021-02-06 03:13

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 buff

3条回答
  •  春和景丽
    2021-02-06 03:41

    ?break

    Only gets you out of loop.

    ?try

    Lets you set up code that might fail and gracefully recover.

提交回复
热议问题