R/zzz.R
567ab02f
 .onAttach <- function(libname, pkgname) {
c25bdbe6
     pkgVersion <- packageDescription(pkgname, fields="Version")
     msg <- paste0(pkgname, " v", pkgVersion, "  ",
                   "For help: https://guangchuangyu.github.io/", pkgname, "\n\n")
 
     citation <- paste0("If you use ", pkgnameg, " in published research, please cite:\n",
                   "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 2016, doi:10.1111/2041-210X.12628")
     packageStartupMessage(paste0(msg, citation))
567ab02f
 }