> first, I think it would be more useful if it had an optional character > string, so users could write > stopifnot( is.matrix(m), "m is not a matrix" ) stop() allows for arbitrary strings ....