Randall R Schulz
rschulz at sonic.net
Thu Sep 22 20:28:43 CEST 2005
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
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
Does this make sense? Or am I misunderstanding your use case?
More information about the R-help