R/welcome.R

Defines functions .onAttach

# ==========================================================================
# package initialization
# ==========================================================================
.onAttach = function(libname, pkgname) {
  msg <- c("----------------------------------------------",
          "Welcome to 'RNADiff'.")
  # checking DESeq2 version
  if (packageVersion("DESeq2") < "1.6.0"){
    msg <- c(msg,"warning: RNADiff needs DESeq2 1.6.X or higher, your version of DESeq2 might be incompatible with the workflow.")
  }
  # checking edgeR version
  if (packageVersion("edgeR") < "3.8.0"){
    msg <- c(msg,"warning: RNADiff needs edgeR 3.8.X or higher, your version of edgeR might be incompatible with the workflow.")
  }
  msg <- c(msg,"----------------------------------------------")
  msg <- strwrap(msg, exdent=4, indent=4)
  packageStartupMessage(paste(msg, collapse="\n"), appendLF=TRUE)
}
biomics-pasteur-fr/RNADiff documentation built on Aug. 27, 2020, 12:44 a.m.