break/exit script

The Solution to break/exit script is


You could use the stopifnot() function if you want the program to produce an error:

foo <- function(x) {
    stopifnot(x > 500)
    # rest of program
}

~ Answered on 2013-07-24 14:56:30


Most Viewed Questions: