tests/testthat/helper-functions.R

skip_if_not_travis_or_bioc <- function() {
    if (identical(Sys.getenv("TRAVIS"), "true") ||
        !identical(Sys.getenv("BBS_HOME"), "")) {
        return(invisible(TRUE))
    }

    skip("Not on Travis or Bioconductor")
}

skip_if_not_in_path <- function(program) {
  if (Sys.which(program) == "") {
    skip(paste(program, "not in path"))
  }
}
kjohnsen/MMAPPR2 documentation built on Oct. 1, 2019, 7:01 p.m.