Skip to content
Back to formatted view

Raw Message

Message-ID: <F199FDA4-F8BF-4B26-8278-9E880557D903@comcast.net>
Date: 2013-03-04T23:34:19Z
From: David Winsemius
Subject: Syntax for error messages
In-Reply-To: <8A162D47-5711-44DA-9CC4-423337EEC940@plessthan.com>

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