Assert a warning of error occured
assert.warning_error(w, warning = "", msg = "")
w
warning
msg
Hadley Wickham <h.wickham@gmail.com>