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

标签 r

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

相关文章:

r - 使用 gtsummary 对表中的回归变量进行排序

r - 在 Shiny 的文档中显示 ggvis 绘图

r - 如何将 R 连接到 hadoop 上正在运行的 H20 集群

R data.table 按两列分组和迭代

r - R中的NULL对象类型

R:生成具有stringdist和stringdistmatrix的近匹配项列表

行对名称中具有特定模式的列求和

r - 为大型数据集加速 plot() 函数

r - 库中的错误 (ggplot2) : there is no package called ‘ggplot2’ Execution halted

r - 如何在双y轴ggplot上显示图例