Is there a RUnit checkException error for warning ()?

checkException will check to see if it encounters a stop () call, but not a warn () call. Is there a workaround or hack to check for warnings? (and silence them during testing)

thanks

+2


a source to share


1 answer


Maybe you can just use

> options(warn=2)

      



in the installation code to include warnings in errors?

See help(options)

for a paragraph of this option.

+4


a source







All Articles