[Rd] quote() vs quote(expr=)

peter dalgaard pdalgd at gmail.com
Mon Feb 18 17:35:21 CET 2013


On Feb 18, 2013, at 17:04 , Hadley Wickham wrote:

> quote(expr =) returning missing seems like the right thing to me,
> quote() throwing an error does not, because it violates the usual
> semantics where f(x = ) is equivalent to f().

Except that it isn't:

> (function(...)nargs())()
[1] 0
> (function(...)nargs())(x=)
[1] 1


-- 
Peter Dalgaard, Professor
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-devel mailing list