R/zzz.R

Defines functions .onAttach

##' @importFrom utils packageDescription
.onAttach <- function(libname, pkgname) {
    pkgVersion <- packageDescription(pkgname, fields="Version")
    msg <- paste0(pkgname, " v", pkgVersion, "  ",
                  "For help: https://guangchuangyu.github.io/software/", pkgname, "\n\n")

    citation <- paste0("If you use ", pkgname, " in published research, please cite:\n",
                       "Guangchuang Yu, Li-Gen Wang, Yanyan Han, Qing-Yu He. ",
                       "clusterProfiler: an R package for comparing biological themes among gene clusters. ",
                       "OMICS: A Journal of Integrative Biology. 2012, 16(5):284-287.")

    packageStartupMessage(paste0(msg, citation))

    options(timeout = max(300, getOption("timeout"))) # see ?download.file
}

Try the clusterProfiler package in your browser

Any scripts or data that you put into this service are public.

clusterProfiler documentation built on Feb. 11, 2021, 2:02 a.m.