From murdoch.duncan at gmail.com  Thu Apr 20 15:31:01 2017
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Thu, 20 Apr 2017 09:31:01 -0400
Subject: [Rd] ask.yes.no() function
In-Reply-To: <22776.46060.227031.523201@max.eddelbuettel.com>
References: <135e266b-1f00-e305-74f2-8fe310ea8e55@gmail.com>
 <CAAcGz9-qtJR7vJu9m=mq70=owr7+Yo-hpFhOTQOpdq6c2_R3hg@mail.gmail.com>
 <22776.46060.227031.523201@max.eddelbuettel.com>
Message-ID: <2332caab-8155-10f4-389d-9a7c55d0427b@gmail.com>

On 20/04/2017 9:13 AM, Dirk Eddelbuettel wrote:
>
> On 20 April 2017 at 09:33, Michael Sumner wrote:
> | Perhaps worth pointing out "yesno" as a candidate:
> |
> | https://CRAN.R-project.org/package=yesno
> | <https://cran.r-project.org/package=yesno>
>
> Not really as
>
>  i)  base R will not have dependencies outside of it

Indeed, I'm looking for one that can be copied into base R.  The author 
can retain copyright, but we need to be able to offer it under our GPL 
license.

>
>  ii) more importantly, Duncan asked for a good example of a "consistent" (as
>      in: predictable) question function yet you submit one which by design
>      *varies* answers to be less predictable.

Yes, there are reasons to have questions that vary randomly, but I think 
they don't apply to the situations where I want to use this.

Duncan Murdoch

>
> Dirk
>
> | Cheers, Mike
> |
> |
> |
> | On Wed, 19 Apr 2017 at 21:55 Duncan Murdoch <murdoch.duncan at gmail.com>
> | wrote:
> |
> | As described in
> | <https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17242>, R base
> | functions are currently inconsistent in asking interactive "yes/no" type
> | questions. One solution to this is to have a function to do it, and to
> | use it consistently.
> |
> |
> |
> |
> | Rather than just writing such a function and possibly missing some
> | desirable feature, I'd like to ask if anyone can point to an existing
> | one that is perfect (or nearly perfect, and point out what changes would
> | be desirable)?
> |
> | Duncan Murdoch
> |
> | ______________________________________________
> | R-devel at r-project.org mailing list
> | https://stat.ethz.ch/mailman/listinfo/r-devel
> | --
> | Dr. Michael Sumner
> | Software and Database Engineer
> | Australian Antarctic Division
> | 203 Channel Highway
> | Kingston Tasmania 7050 Australia
> |
> | 	[[alternative HTML version deleted]]
> |
> | ______________________________________________
> | R-devel at r-project.org mailing list
> | https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] ask.yes.no() function
Duncan Murdoch