Duncan,

thanks for the response.  stopifnot() looks almost right.  it's very
useful if assertion failures issue an error message pointing at the
source file/line (such as error produces); it might also be nice (but
not necessary) to allow the caller to pass in a "higher level" message
to be appended to the output.

i see the problems with vectors.  i might complain that the programmer
has made in error in their expressions.  (err on the side of over-,
rather than underreporting.)

cheers, Greg

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to