The R Project SVN R

Rev

Rev 5188 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

\name{Primitive}
\title{Call a ``Primitive'' Internal Function}
\usage{
.Primitive(name)
}
\alias{.Primitive}
\arguments{
\item{name}{name of the \R function.}
}
\description{
  \code{.Primitive} returns an entry point to a ``primitive''
  (internally implemented) function.

  The advantage of \code{.Primitive} over \code{\link{.Internal}}
  functions is the potential efficiency of argument passing.
}
\seealso{
\code{\link{.Internal}}.
}
\examples{
mysqrt <- .Primitive("sqrt")
c
.Internal # this one *must* be primitive!
get("if") # just `if' or `print(if)' are not syntactically ok.
}
\keyword{interface}