[Rd] Extending suggestion for stopifnot
ivo.welch at gmail.com
Thu Aug 22 01:49:18 CEST 2013
thx to everyone for having listened to my suggestion and reasoning
through it, even though it won't fly.
maybe, as a last word, let me add a short appeal that is more generic:
R is a tough programming language for beginners. anything that
allows a user to request additional error-checking, and/or that makes
it easier and encourages users to write programs that check inputs
would probably get widely used and be welcome by many. R libraries
are useful, but it's not the same as having these sort of features in
the base language.
Ivo Welch (ivo.welch at gmail.com)
J. Fred Weston Professor of Finance
Anderson School at UCLA, C519
Director, UCLA Anderson Fink Center for Finance and Investments
Free Finance Textbook, http://book.ivo-welch.info/
Editor, Critical Finance Review, http://www.critical-finance-review.org/
On Wed, Aug 21, 2013 at 6:56 AM, Geoff Jentry <geoffjentry at hexdump.org> wrote:
>> 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 ....
More information about the R-devel