From ivo.welch at gmail.com  Thu Aug 22 01:49:18 2013
From: ivo.welch at gmail.com (ivo welch)
Date: Wed, 21 Aug 2013 16:49:18 -0700
Subject: [Rd] Extending suggestion for stopifnot
In-Reply-To: <alpine.DEB.2.00.1308210656030.3904@cardinals.dreamhost.com>
References: <CAPr7RtX3b5XBzgn1XT3nPcvX71G=W1CpK=tK1T3zz4zWW=pQNQ@mail.gmail.com>
	<alpine.DEB.2.00.1308210656030.3904@cardinals.dreamhost.com>
Message-ID: <CAPr7RtUkSx61+3oG-eoMGAKZ_g1d=T12HAOwS-G+EEeMyPHcsg@mail.gmail.com>

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.

regards,

/iaw
----
Ivo Welch (ivo.welch at gmail.com)
http://www.ivo-welch.info/
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 ....



[Rd] Extending suggestion for stopifnot
ivo welch