1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{anySpecial}
\alias{anySpecial}
\title{Detect whether there are any 'specials' in a formula term}
\usage{
anySpecial(term, specials = findReTrmClasses(), fast = FALSE)
}
\arguments{
\item{term}{formula term}
\item{specials}{values to detect}
\item{fast}{(logical) use quick (syntactic) test for presence of specials?}
}
\value{
logical value
}
\description{
Detect whether there are any 'specials' in a formula term
}
\examples{
## should only detect s as the head of a function, s(...)
anySpecial(~diag(1))
anySpecial(~diag)
anySpecial(~diag[[1]])
anySpecial(~diag[1])
anySpecial(~s)
anySpecial(~s(hello+goodbye,whatever))
}
|