From edd at debian.org  Thu Apr 20 15:13:16 2017
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 20 Apr 2017 08:13:16 -0500
Subject: [Rd] ask.yes.no() function
In-Reply-To: <CAAcGz9-qtJR7vJu9m=mq70=owr7+Yo-hpFhOTQOpdq6c2_R3hg@mail.gmail.com>
References: <135e266b-1f00-e305-74f2-8fe310ea8e55@gmail.com>
 <CAAcGz9-qtJR7vJu9m=mq70=owr7+Yo-hpFhOTQOpdq6c2_R3hg@mail.gmail.com>
Message-ID: <22776.46060.227031.523201@max.eddelbuettel.com>


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

 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.

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

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] ask.yes.no() function
Dirk Eddelbuettel