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://github.com/lilab-bioinfo/xQTLbiolinks/", "\n\n")

  # if (capabilities("libcurl")) {
  #   dl.method <- "libcurl"
  # } else {
  #   dl.method <- getOption("download.file.method", default = "auto")
  # }

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

  citation <- paste0("If you use ", pkgname, " in published research, please cite:\n",
                     "Ruofan Ding, Xudong Zou, Yangmei Qin, Xuelian Ma, Gao Wang, Lei Li. xQTLbiolinks: a comprehensive and scalable tool for integrative analysis of molecular QTLs.",
                     "")

  packageStartupMessage(paste0(msg, citation))
}

Try the xQTLbiolinks package in your browser

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

xQTLbiolinks documentation built on Sept. 15, 2023, 1:06 a.m.