R/zzz.R

Defines functions .onAttach

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

  citation <- paste0(
                     " If you use ", pkgname, " in published research, please cite:\n",

                     " Macrophage correlates with immunophenotype and predicts anti-PD-L1\n",
                     " response of urothelial cancer. Theranostics 2020; 10(15):7002-7014.\n",
                     "==========================================================================")

  packageStartupMessage(paste0(msg, citation))
}
DongqiangZeng0808/Blasso documentation built on Oct. 12, 2022, 9:44 p.m.