R/zzz.R

Defines functions .onAttach

#' @importFrom utils packageDescription
.onAttach <- function(libname, pkgname) {
    pkgVersion <- packageDescription(pkgname, fields="Version")
    ref <- random_ref(pkgname = pkgname, pkgVersion = pkgVersion, random_n = 2)
    if (!is.null(ref)) packageStartupMessage(ref)    
}

random_ref <- getFromNamespace("random_ref", 'tidytree')
xiangpin/ggadd documentation built on Nov. 6, 2024, 11:04 p.m.