On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: > 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 >
You may want to read the docs in the first place: Value: [...] 'NULL' in case of a non-function. Cheers, S ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel