gpt4 book ai didi

r - 如何在 R 中返回错误消息?

转载 作者:行者123 更新时间:2023-12-03 06:58:58 24 4
gpt4 key购买 nike

我想知道如何在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com