[Rd] possible bug in formals
Josef Leydold
leydold at statmath.wu.ac.at
Sun May 23 16:14:55 CEST 2010
Hi,
I am a little bit surprised by the following output of
'formals'. Is this the intended behavior?
> f <- function(a=1,b=-1) { a+b }
> class(formals(f)$a)
[1] "numeric"
> class(formals(f)$b)
[1] "call"
Josef
--
-----------------------------------------------------------------------------
Josef Leydold | WU (Vienna University of Economics and Business)
| Institute for Statistics and Mathematics
-----------------------------------------------------------------------------
Augasse 2-6 | Tel. +43 1 31336 4695
A-1090 Vienna | FAX +43 1 31336 774
European Union | email josef.leydold at wu.ac.at
More information about the R-devel
mailing list