R/zzz.R

Defines functions .onAttach StartupMessage

#' @importFrom utils packageVersion
StartupMessage <- function()
{
  # Startup message obtained as
  msg <- c(paste0("Credit Model version ", packageVersion("creditmodel"),"
  ____ __  __ 
 / ___|  \\/  |
| |   | |\\/| |
| |___| |  | |
 \\____|_|  |_| \n","WeChatPlatform: hansenmode"))
  return(msg)
}

.onAttach <- function(lib, pkg)
{
  # startup message
  msg <- StartupMessage()
  if(!interactive())
    msg[1] <- paste("Package 'creditmodel' version", packageVersion("creditmodel"))
  packageStartupMessage(msg)
  invisible()
}

Try the creditmodel package in your browser

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

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.