[R] [beginner] simple keyword to exit script ?

David Winsemius dwinsemius at comcast.net
Sun Nov 21 16:56:14 CET 2010


On Nov 21, 2010, at 10:43 AM, madr wrote:

>
> Is there any way of suppressing that error, like in other programming
> languages you can specifically invoke an error or simply exit,

If you are in a function, then return()

> like after
> user input, exiting then is not always identical with error , there  
> are
> cases when it is intended behavior. I thought R makes that  
> distinction.

Provide some code. (You did say you had a script.)  The answer  
probably depends on context and you are not providing any.

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list