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.
精彩评论