R/skip_if_local.R

Defines functions skip_if_local

Documented in skip_if_local

#' skip_if_local
#'
#' A helper function to minimize time consuming testing against databases locally.
#'
#' Only used within formal tests of the package.
#'
#' @return boolean
#' @export
skip_if_local <- function() {
  if ((Sys.getenv("NOT_CRAN"))) {
    return(invisible(TRUE))
  }
  testthat::skip("if on local computer")
}
CIP-RIU/brapi documentation built on Oct. 17, 2019, 2 p.m.