\Header{nargs}{The Number of Arguments to a Function}
\keyword{programming}{nargs}
\begin{Usage}
\begin{verbatim}nargs()\end{verbatim}
\end{Usage}
\begin{Description}
When used inside a function body, \texttt{nargs} returns the number of
arguments supplied to that function.\end{Description}
\begin{SeeAlso}
\texttt{\Link{args}}, \texttt{\Link{formals}} and \texttt{\Link{sys.call}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
tst <- function(a, b=3, ...) {nargs()}
tst() # 0
tst(clicketyclack) # 1 (even non existing)
tst(c1,a2,rr3) # 3

nargs()# not really meaningful
\end{ExampleCode}
\end{Examples}

