PersonAlyticsStartupMessage <- function()
{
# https://www.askapache.com/online-tools/figlet-ascii/
msg <- c(paste0(
"
'||'''|,
|| ||
||...|' .|''|, '||''| ('''' .|''|, `||''|,
|| ||..|| || `'') || || || || ====
.|| `|... .||. `...' `|..|' .|| ||.
/.\ '||` ||
// \\ || || ''
//...\\ || '|| ||` ''||'' || .|'', (''''
// \\ || `|..|| || || || `'')
.// \\. .||. || `|..' .||. `|..' `...'
, |'
''
Version ",
packageVersion("PersonAlytics")),
"\n\nType 'citation(\"PersonAlytics\")' for citing this R package in publications.",
"\n\nType 'vignette(\"PersonAlytics_Users_Guide\")' for the user's guide.\n")
return(msg)
}
.onAttach <- function(lib, pkg)
{
msg <- PersonAlyticsStartupMessage()
if(!interactive())
msg[1] <- paste("Package 'PersonAlytics' version", packageVersion("PersonAlytics"))
packageStartupMessage(msg)
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.