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://yulab-smu.top/treedata-book/", "\n\n")

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

    packageStartupMessage(paste0(msg, citation))
}
xiangpin/ggadd documentation built on Sept. 12, 2021, 10:15 p.m.