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 most appropriate paper(s):\n\n",

                       '\033[36m', '-', '\033[39m ',
                       "Guangchuang Yu. ",
                       "Using ggtree to visualize data on tree-like structures. ",
                       "Current Protocols in Bioinformatics, 2020, 69:e96. doi:10.1002/cpbi.96\n",

                       '\033[36m', '-', '\033[39m ',
                       "Guangchuang Yu, Tommy Tsan-Yuk Lam, Huachen Zhu, Yi Guan. ",
                       "Two methods for mapping and visualizing associated data on phylogeny using ggtree. ",
                       "Molecular Biology and Evolution 2018, 35(12):3041-3043. doi:10.1093/molbev/msy194\n",

                       '\033[36m', '-', '\033[39m ',
                       "Guangchuang Yu, David Smith, Huachen Zhu, Yi Guan, Tommy Tsan-Yuk Lam. ",
                       "ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. ",
                       "Methods in Ecology and Evolution 2017, 8(1):28-36. doi:10.1111/2041-210X.12628\n\n"

                       )

    packageStartupMessage(paste0(msg, citation))
}

Try the ggtree package in your browser

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

ggtree documentation built on Nov. 15, 2020, 2:09 a.m.