[R] Syntax for error messages
David Winsemius
dwinsemius at comcast.net
Tue Mar 5 00:34:19 CET 2013
On Mar 4, 2013, at 3:09 PM, Fisher Dennis wrote:
> R 2.15
> OS X and Windows
>
> Colleagues,
>
> I am running a lengthy R script (> 20K lines of code) within a GUI build in RealBasic. There are rare instances in which an error is triggered in R. I am trying to trap these based on their syntax. I have identified three general formats for error messages:
> Error in
> Error: object
> Error: could
> Each is these is followed by some informative text. However, these stems are sufficient to identify these particular errors.
>
> Are there other stems that I have missed?
After a bit of searching the See also links from try .... You might want to look at the "1.9.2 R messages" section in Writing R Extensions. It describes the method of extraction of error and warning messages from a package.
--
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list