[Rd] ask.yes.no() function

Duncan Murdoch murdoch.duncan at gmail.com
Thu Apr 20 15:31:01 CEST 2017


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
>



More information about the R-devel mailing list