search for: dontwantm

Displaying 1 result from an estimated 1 matches for "dontwantm".

Did you mean: dontwantme
2002 Jan 04
2
Problem with "missing" in "local" (PR#1241)
Hi everyone, I encountered unexpected behaviour when calling "missing" within a "local" environment, namely fred <- function(x, y) { x <- as.vector(x) local({ dontwantme <- 1:100 if (missing(y)) print("No \"y\" today") }) x } whereupon I get > fred(1:10) Error in eval(expr, envir, enclos) : "missing" illegal use of missing I think it is reasonable to expect missing to work in this context (I suspect the problem relate...