Assert that a warning occured
assert.warning(f, warning = "", msg = "")
f
warning
msg
Hadley Wickham <h.wickham@gmail.com>