From vograno at evafunds.com  Wed Nov 10 02:36:32 2004
From: vograno at evafunds.com (Vadim Ogranovich)
Date: Wed Nov 10 02:36:34 2004
Subject: [Rd] recursive default argument reference
Message-ID: <C698D707214E6F4AB39AB7096C3DE5A5750FE8@phost015.EVAFUNDS.intermedia.net>

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


[Rd] recursive default argument reference
Vadim Ogranovich