[Rd] E`<`<rrors in recursive default argument references

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Thu Mar 12 15:54:35 CET 2009


luke at stat.uiowa.edu wrote:
> Thanks to Stavros for the report.  This should now be fixed in R-devel.

indeed, though i find some of the error messages strange:

    (function(a=a) -a)()
    # Error in (function(a = a) -a)() :
    #  element 1 is empty;
    #   the part of the args list of '-' being evaluated was:
    #   (a)

    (function(a=a) c(a))()
    # Error in (function(a = a) c(a))() :
    #   promise already under evaluation: recursive default argument
reference or earlier problems?

why are they different?

vQ



More information about the R-devel mailing list