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))
}

Try the ggtreeExtra package in your browser

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

ggtreeExtra documentation built on April 8, 2021, 6:01 p.m.