This is probably a newbie question: How do I test, inside a function, is a call I made from inside that function produced a warning? [For those who want the gory details: I have a list of text files tagged with a classification. I want to know which words can serve as key words for recognizing the class. One thing I want to try is to fit a binomial model to the number of occurrences of a word in the documents and see if the classification explains a reasonable amount of the variation. A large percentage of the time, this produces a warning about non-convergence. I want to filter out these words as I go through the array of word frequencies. I looked at last.warning, but I can''t figure out how to test it properly under all possible circumstances.] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._