R/helpers.R

Defines functions testForPackage

testForPackage <- function(pkg) {
  if (!requireNamespace(pkg)) {
    stop("Package", pkg, "required but not installed")
  }
}
ashiklom/PEcAnRTM documentation built on March 7, 2020, 7:46 a.m.