https://github.com/cran/Hmisc
Tip revision: b69f0b31191ea4651a10a51924ad248436db778c authored by Charles Dupont on 03 July 2007, 14:20:33 UTC
version 3.4-2
version 3.4-2
Tip revision: b69f0b3
requirePackage.Rd
\name{requirePackage}
\alias{requirePackage}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
require a packge and error if package is not installed
}
\description{
require a package. If package doesn't exist then throw an error.
}
\usage{
requirePackage(package, character.only = FALSE, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{package}{
character vector containing the names of packages to load.
}
\item{character.only}{
a logical indicating whether 'package' can be
assumed to be character string.
}
\item{\dots}{
arguments to be passed to require.
}
}
\author{ Charles Dupont }
\seealso{
\code{\link[base]{library}}, \code{\link[base]{require}}
}
\examples{
\dontrun{
requirePackage(methods)
}
\dontshow{
requirePackage(methods)
requirePackage('methods')
}
}
\keyword{ utilities }% at least one, from doc/KEYWORDS
\keyword{ programming }% __ONLY ONE__ keyword per line