[Rd] args / formals on primitives

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon Apr 16 18:53:03 CEST 2007


On SVN revision 41087:

?args has this example line:

args(c)            # -> NULL (c is a 'primitive' function)

The comment seems out of date, as args(c) does in fact have a non-NULL return 
value:

args(c)
# function (..., recursive = FALSE) 
# NULL

While at it, I was wondering, why

formals(c)

still returns NULL, in contrast.

Regards
Thomas Friedrichsmeier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-devel/attachments/20070416/07116e3c/attachment.bin 


More information about the R-devel mailing list