I am trying to debug a function. I would like to display warnings when they occur but I don\'t understand how to change the warning settings.
Set
options(warn=1)
Read more in ?options
?options