The R Project SVN R

Rev

Rev 15461 | Rev 47073 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15461 Rev 24300
Line 5... Line 5...
5
\description{
5
\description{
6
  When used inside a function body, \code{nargs} returns the number of
6
  When used inside a function body, \code{nargs} returns the number of
7
  arguments supplied to that function, \emph{including} positional
7
  arguments supplied to that function, \emph{including} positional
8
  arguments left blank. 
8
  arguments left blank. 
9
}
9
}
-
 
10
\references{
-
 
11
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
-
 
12
  \emph{The New S Language}.
-
 
13
  Wadsworth \& Brooks/Cole.
-
 
14
}
10
\seealso{\code{\link{args}}, \code{\link{formals}} and \code{\link{sys.call}}.}
15
\seealso{\code{\link{args}}, \code{\link{formals}} and \code{\link{sys.call}}.}
11
\examples{
16
\examples{
12
tst <- function(a, b = 3, ...) {nargs()}
17
tst <- function(a, b = 3, ...) {nargs()}
13
tst() # 0
18
tst() # 0
14
tst(clicketyclack) # 1 (even non-existing)
19
tst(clicketyclack) # 1 (even non-existing)