Hi,

It seems that a formal function argument can not default to an "outer"
variable of the same name:

> x <- "foo"
> ff <- function(x=x) x
> ff()
Error in ff() : recursive default argument reference
> 

Is this intentional? Why?

I use R-1.9.1.

Thanks,
Vadim

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to