Re: [R] how to stop without error message?

From: hadley wickham <h.wickham_at_gmail.com>
Date: Mon, 10 Nov 2008 20:06:16 -0600

On Mon, Nov 10, 2008 at 4:42 PM, <Mark.Bravington_at_csiro.au> wrote:
> Dear list
>
> Can anyone suggest a simple way to abort execution like stop(...) does, but without issuing an "Error: ..." message?
>
> I don't want to set 'options( show.error.messages=TRUE)' because I want normal behaviour to resume after this particular stop.

What's wrong with return() ?

Hadley

-- 
http://had.co.nz/

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 11 Nov 2008 - 02:14:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Nov 2008 - 05:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive