[R] Using stop ( ) from a Text Editor

From: Paulo Cardoso <pecardoso_at_netcabo.pt>
Date: Mon, 28 Jul 2008 12:34:04 +0100

When using stop clause with a condition, its documented that "If a condition object is supplied it should be the only argument, and further arguments will be ignored, with a warning".

This will not be the case when running codes from Winedit or TINN?

When I do something like:

if(length(content[content%in%folders])!=4) stop("Execution will be interrupted")

from TINN while executing an entire code R will continue reading the code anyway.

Is there a way to interrupt the code of being read from a text interface?

Paulo



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 Mon 28 Jul 2008 - 11:57:05 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 Mon 28 Jul 2008 - 13:32:39 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