[Rd] Problem with args

Gabor Grothendieck ggrothendieck at gmail.com
Sat Apr 21 19:03:28 CEST 2012


args ought to check that its argument is a function:

> max <- 3
> args(max)
NULL

e.g.

> args <- function(name) {
+     name <- match.fun(name)
+     base::args(name)
+ }
> args(max)
function (..., na.rm = FALSE)
NULL


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-devel mailing list