Posts Tagged ‘exit’

Exit command in R

Posted: 26th April 2015 by Tim in R
Tags: , , , , , ,

R is quite different from most other programming languages. One common feature of other languages is the exit routine, or something with a similar name. In R, that function is stop, and takes an error message string as an argument. For example: stop(“I don’t work on weekends”) will print: Error: I don’t work on weekends […]

Using the signal(…) routine (defined in the csignal or signal.h headers), you can define how various signals are handled by your program. The routine takes two arguments; the first is the signal you wish to handle, and the second is the handling routine itself. The handling routine can be specified as SIG_DFL (default handling), SIG_IGN […]