From ggrothendieck at gmail.com  Sat Apr 21 19:03:28 2012
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Sat, 21 Apr 2012 13:03:28 -0400
Subject: [Rd] Problem with args
Message-ID: <CAP01uR=U_Dy8hU3YV6DQJF5oG94rMs1K--m-2607E_5nkCAkSA@mail.gmail.com>

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



[Rd] Problem with args
Gabor Grothendieck