开发者

Is there an RUnit checkException for warning()?

checkExce开发者_开发问答ption will validate if meeting a stop() call, but not a warning() call. Is there a workaround or hack to check for warnings? (and make them silent during testing)

thanks


Maybe you can simply use

> options(warn=2)

in the setup code to turn warnings into errors?

See help(options) for the paragraph on this option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜