stopif()
The stopif()
function halts an execution if a condition is met.
## Error in stopif(2 < 3): Stop condition met.
stopif(2 < 3, 'This is a custom message! STOP!')
## Error in stopif(2 < 3, "This is a custom message! STOP!"): This is a custom message! STOP!