Bug 15707 - Missingness does not propagate through `...`
Summary: Missingness does not propagate through `...`
Alias: None
Product: R
Classification: Unclassified
Component: Language (show other bugs)
Version: R 3.1.2
Hardware: All All
: P5 normal
Assignee: R-core
Depends on:
Reported: 2014-03-10 00:14 UTC by Peter Meilstrup
Modified: 2015-12-14 13:48 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Peter Meilstrup 2014-03-10 00:14:12 UTC
The missingness of arguments is not preserved after once being captured in `...`.

check <- function(x,y,z) c(missing(x), missing(y), missing(z))
check(one, , three)       #FALSE, TRUE, FALSE
check1 <- function(...) check(...)
check1(one, , three)      #FALSE, TRUE, FALSE
check2 <- function(...) check1(...)
check2(one, , three)      #FALSE, FALSE, FALSE
Comment 1 Martin Maechler 2014-04-10 19:21:07 UTC
A bug indeed.

Note that I see the same in R 1.0.1 and R 2.2.1 ... so I guess
this has been with us since "the beginning of time" ;-)
and cannot have been crucial...

Nevertheless worth fixing.. (but probably not be me).
Comment 2 Martin Maechler 2014-12-13 10:05:18 UTC
as we (well, ML)  are currently working at fixing some '...'  problems,
maybe we can address this one, too ?
Comment 3 Michael Lawrence 2014-12-13 23:40:19 UTC
Checked in a fix with r67166. Pretty new at this stuff, so extra eyes are appreciated.