R/check_pkg_deps.R

Defines functions check_pkg_deps

check_pkg_deps <- function() {
  if(!require(dplyr)) {
    stop("the 'dplyr' package needs to be installed first")
  }
  if(!require(tidyr)) {
    stop("the 'tidyr' package needs to be installed first")
  }
  if(!require(stringr)) {
    stop("the 'stringr' package needs to be installed first")
  }
}
kdgorospe/fishstatr documentation built on May 22, 2020, 12:08 a.m.