#' @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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.