开发者

Is there an RUnit checkException for warning()?

开发者 https://www.devze.com 2022-12-28 10:42 出处:网络
checkExce开发者_开发问答ption will validate if meeting a stop() call, but not a warning() call.

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

精彩评论

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