我想知道如何在 R 中生成错误消息,尤其是在函数内部?
最佳答案
既然你没有具体说明你真正想要什么,我只能说看看
?message # prints a message but not stop execution
?warning # prints a warning message but not stop execution
?stop # stops execution of the current expression and executes an error action.
关于r - 如何在 R 中返回错误消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12723800/