warning.expression?
Thomas,
On Thursday 22 September 2005 10:00, Thomas Friedrichsmeier wrote:
You might be interested in 'tryCatch' to catch warnings.
Yes, thanks for pointing it out. However, I'm actually looking for a way to catch all warnings in a whole (interactive) session. Can warning.expression be used for that?
Please permit, if you will, some feedback from someone who is quite uneducated in R, at least so far, but who has a lot of general programming background. I'm afraid this does not make sense to me. An "interactive session" is not some monolithic blob. It is a sequence of one or more (often very many) discreet interactions. Any one of these may produce an exceptional condition, and it seems to me that each individual interaction that elicits an exception should be handled independently and if it does produce an exceptional condition, that should be reported as soon as it occurs. Things should then be cleaned up, as necessary and feasible, and the interactive session should be allowed to continue. Does this make sense? Or am I misunderstanding your use case?
Thomas
Randall Schulz