Skip to content
Prev 146270 / 398500 Next

Existence of formal arguments.

Note the difference between

test <- function(a) {
   exists("a", mode = "symbol")
}
test()

and

test2 <- function(a) {
   exists("a", mode = "numeric") #say
}
test2()

and then note that the default mode argument to exists is "any".
Rolf Turner wrote: