Collect any warnings created when running function
get_warning(x)
x
Hadley Wickham <h.wickham@gmail.com>