The R Project SVN R

Rev

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

Rev 68948 Rev 74897
Line 1... Line 1...
1
% File src/library/base/man/is.function.Rd
1
% File src/library/base/man/is.function.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{is.function}
6
\name{is.function}
7
\alias{is.function}
7
\alias{is.function}
8
\alias{is.primitive}
8
\alias{is.primitive}
Line 14... Line 14...
14
\description{Checks whether its argument is a (primitive) function.}
14
\description{Checks whether its argument is a (primitive) function.}
15
\arguments{
15
\arguments{
16
  \item{x}{an \R object.}
16
  \item{x}{an \R object.}
17
}
17
}
18
\details{
18
\details{
19
  \code{is.primitive(x)} tests if \code{x} is a primitive function
19
  \code{is.primitive(x)} tests if \code{x} is a \link{primitive} function,
20
  (either a \code{"builtin"} or \code{"special"} as described for
20
  i.e, if \code{\link{typeof}(x)} is either \code{"builtin"} or
21
  \code{\link{typeof}})?  It is a \link{primitive} function.
21
  \code{"special"}.
22
}
22
}
23
\value{
23
\value{
24
  \code{TRUE} if \code{x} is a (primitive) function, and \code{FALSE}
24
  \code{TRUE} if \code{x} is a (primitive) function, and \code{FALSE}
25
  otherwise.
25
  otherwise.
26
}
26
}