https://github.com/cran/Hmisc
Revision e2b83144bb94f493b29a63bc48fb3d21577418a2 authored by Charles Dupont on 26 January 2009, 16:38:03 UTC, committed by cran-robot on 26 January 2009, 16:38:03 UTC
1 parent ffaa7df
Raw File
Tip revision: e2b83144bb94f493b29a63bc48fb3d21577418a2 authored by Charles Dupont on 26 January 2009, 16:38:03 UTC
version 3.5-2
Tip revision: e2b8314
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
back to top