Search notes:

R function: stopifnot

stopifnot can be used to assert or verify assumptions while a script is running.
x <- 10:20;
y <- 20:30;

# Make sure length of x is equal length of y:
stopifnot (length(x) == length(y) )
Github repository about-r, path: /functions/stopifnot.R

See also

Index to (some) R functions

Index