Re: [Rd] Improvement in hist command documentation

2019-10-01 Thread Martin Maechler
> Jérôme LAURENS > on Tue, 1 Oct 2019 11:47:38 +0200 writes: > Hi all, > In the histogram created with the `hist` command, the label of the y axis reads "Frequency ». > Finding that the ylab key is used to change (localize) that word may seem difficult for people > w

Re: [Rd] Is missingness always passed on?

2019-10-01 Thread Bertram, Alexander via R-devel
The updated example was meant to read: f1 <- function(x = NULL, y = NULL, z = NULL){ if(missing(x)) cat("f1: x is missing\n") if(missing(y)) cat("f1: y is missing\n") } f2 <- function(x = NULL, y = NULL, z = NULL){ if(missing(z)) cat("f2: z is missing\n") f1(x, y) } f2() Ale

Re: [Rd] Is missingness always passed on?

2019-10-01 Thread Bertram, Alexander via R-devel
There is "missing with default" and "missing without default". If an argument x is missing without a default, then missing(x) is true, if you pass x to another function, it will pass the value of the "missing argument". (which is different than simply being missing!) If an argument x is missing _

[Rd] Improvement in hist command documentation

2019-10-01 Thread Jérôme LAURENS
Hi all, In the histogram created with the `hist` command, the label of the y axis reads "Frequency ». Finding that the ylab key is used to change (localize) that word may seem difficult for people who are beginners either in R or in english. I suggest very minor modifications of the file hist.R

Re: [Rd] Is missingness always passed on?

2019-10-01 Thread Serguei Sokol
Le 01/10/2019 à 10:58, Serguei Sokol a écrit : Le 30/09/2019 à 16:17, Duncan Murdoch a écrit : There's a StackOverflow question https://stackoverflow.com/q/22024082/2554330 that references this text from ?missing: "Currently missing can only be used in the immediate body of the function th

Re: [Rd] Is missingness always passed on?

2019-10-01 Thread Duncan Murdoch
On 01/10/2019 4:58 a.m., Serguei Sokol wrote: Le 30/09/2019 à 16:17, Duncan Murdoch a écrit : There's a StackOverflow question https://stackoverflow.com/q/22024082/2554330 that references this text from ?missing: "Currently missing can only be used in the immediate body of the function that de

Re: [Rd] Is missingness always passed on?

2019-10-01 Thread Serguei Sokol
Le 30/09/2019 à 16:17, Duncan Murdoch a écrit : There's a StackOverflow question https://stackoverflow.com/q/22024082/2554330 that references this text from ?missing: "Currently missing can only be used in the immediate body of the function that defines the argument, not in the body of a ne

[Rd] Is missingness always passed on?

2019-10-01 Thread Duncan Murdoch
There's a StackOverflow question https://stackoverflow.com/q/22024082/2554330 that references this text from ?missing: "Currently missing can only be used in the immediate body of the function that defines the argument, not in the body of a nested function or a local call. This may change