% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{fail_on_missing_package}
\alias{fail_on_missing_package}
\title{Check if R package can be loaded and fails loudly otherwise}
\usage{
fail_on_missing_package(pkg, min_version)
}
\arguments{
\item{pkg}{string}

\item{min_version}{optional minimum version needed}
}
\description{
Check if R package can be loaded and fails loudly otherwise
}
\examples{
\dontrun{
f <- function() fail_on_missing_package('foobar')
f()
g <- function() fail_on_missing_package('stats')
g()
}
}
