tests/testthat/helper.R

# skip function
skip_if_run_bitbucket_pipeline <- function() {
  if (identical(Sys.getenv("BB_PIPELINE"), "")) {
    return(invisible(TRUE))
  }
  
  skip("Not run in bitbucket pipeline")
}
kaiqiong/SOMNiBUS documentation built on Feb. 24, 2023, 5:38 a.m.