R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname, ...) {

  envBFCLoc <- Sys.getenv("TXIMETA_HUB_CACHE")
  if (envBFCLoc != "") {
    bfcLoc <- getTximetaBFC()
    if (is.null(bfcLoc) || envBFCLoc != bfcLoc) {
      setTximetaBFC(envBFCLoc, quiet=TRUE)
    }
  }
  
}
mikelove/tximeta documentation built on Feb. 26, 2024, 4:32 a.m.