From dwinsemius at comcast.net  Wed May  4 22:27:46 2016
From: dwinsemius at comcast.net (David Winsemius)
Date: Wed, 4 May 2016 13:27:46 -0700
Subject: [Rd] Is it possible to retrieve the last error? (not error
	*message*)
In-Reply-To: <CAFDcVCSGG-wpsGFQ5X93z8caC+6VapVqYrX1iA9+55NuLW_SGg@mail.gmail.com>
References: <CAFDcVCSGG-wpsGFQ5X93z8caC+6VapVqYrX1iA9+55NuLW_SGg@mail.gmail.com>
Message-ID: <C6B3FBE3-D53C-4F1D-8027-B1F51975334C@comcast.net>


> On May 4, 2016, at 12:41 PM, Henrik Bengtsson <henrik.bengtsson at gmail.com> wrote:
> 
> Hi,
> 
> at the R prompt, is it possible to retrieve the last error (as in
> condition object of class "error")?
> 
> I'm not asking for geterrmessage(), which only returns the error
> message (as a character string).  I'm basically looking for a
> .Last.error or .Last.condition, analogously to .Last.value for values,
> which can be used when it is "too late" (not possible) to go back an
> use try()/tryCatch().

After looking at the code for the exposed `traceback`
>  I'm wondering if this delivers what you expect:

.traceback()[1]


> Thanks,
> 
> Henrik
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

David Winsemius
Alameda, CA, USA



[Rd] Is it possible to retrieve the last error? (not error *message*)
David Winsemius