在下面的stop电话中,我收到一条消息,如下所示:
Error: cname not found in the 'data'.hhk not found in the 'data'.
我想知道是否有办法让消息看起来像:
'cname', 'hhk' not found in the 'data'.
这在 Base R 中可能吗?
vars = c("cname", "hhk")
a = 1
if(a) stop(paste(vars, "not found in the 'data'."))
Current Error message: Error: cname not found in the 'data'.hhk not found in the 'data'.
Desired Error message: 'cname', 'hhk' not found in the 'data'.