From skostysh at princeton.edu  Sat Jun 14 08:19:16 2014
From: skostysh at princeton.edu (Scott Kostyshak)
Date: Sat, 14 Jun 2014 02:19:16 -0400
Subject: [Rd] Encourage exit with nonzero error status in ?last.dump
In-Reply-To: <21402.50488.327614.392169@stat.math.ethz.ch>
References: <CAE3=dmewge4vJQkGhmtJCO0NrKwg9VZRiwwaQJEKb8Rw6LY93A@mail.gmail.com>
	<21402.50488.327614.392169@stat.math.ethz.ch>
Message-ID: <CAE3=dmcrD2a2d6hUAHUpuZQvPvjtvV=GX9ojEm+RJxFQnYnLgQ@mail.gmail.com>

On Fri, Jun 13, 2014 at 5:32 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
>>>>>> Scott Kostyshak <skostysh at princeton.edu>
>>>>>>     on Fri, 13 Jun 2014 02:04:36 -0400 writes:
>
>     > The following example in ?dump.frames options(error =
>     > quote({dump.frames(to.file = TRUE); q()}))
>
>     > is useful for teaching the user how to save a frame dump
>     > when R encounters an error during non-interactive
>     > sessions. This command however causes an additional change
>     > that on encountering an error R exits with a 0 error
>     > status. Although it's just an example, it's an important
>     > one as it's referenced in the 'Details' section of the
>     > help file. I think it would be better to encourage exiting
>     > with a nonzero error status:
>
>     > options(error = quote({dump.frames(to.file = TRUE); q(status = 1)}))
>
> You are right.
> Thank you for the suggestion: it will be in next
> release.
>
> Martin Maechler,
> ETH Zurich

Thanks, Martin.


--
Scott Kostyshak
Economics PhD Candidate
Princeton University



[Rd] Encourage exit with nonzero error status in ?last.dump
Scott Kostyshak