R/logo.R

Defines functions .onAttach welcome

welcome<- function(){
  msg <- c(paste0(
    "Welcome to
 _____             _____     ____    ____               ____     ____                                          ____               ____
|     |           |     |   |    |  |    |             |    |   |    |                                        |    |             |    |
|      |         |      |   |____|   |    |           |    |    |    |                                         |    |           |    |
|     _ |       | _     |    ____     |    |         |    |     |    |                                          |    |         |    |
|    | | |     | | |    |   |    |     |    |       |    |      |    |                                           |    |       |    |
|    |  | |___| |  |    |   |    |      |    |     |    |       |    |                  __________________        |    |     |    |
|    |   |     |   |    |   |    |       |    |___|    |        |    |_____________    |                  |        |    |___|    |
|    |    |___|    |    |   |    |        |    ___    |         |                  |   |     ________     |         |    ___    |
|    |             |    |   |    |       |    |   |    |        |     ________     |   |    |        |    |        |    |   |    |
|    |             |    |   |    |      |    |     |    |       |    |        |    |   |    |        |    |       |    |     |    |
|    |             |    |   |    |     |    |       |    |      |    |        |    |   |    |        |    |      |    |       |    |
|    |             |    |   |    |    |    |         |    |     |    |________|    |   |    |________|    |     |    |         |    |
|    |             |    |   |    |   |    |           |    |    |                  |   |                  |    |    |           |    |
|____|             |____|   |____|  |____|             |____|   |__________________|   |__________________|   |____|             |____|version ",

    packageVersion("mixbox")),"\nType 'citation(\"mixbox\")' for citing this R package in publications.")
  return(msg)
}
.onAttach <- function(libname, pkgname) {
  mess <- welcome()
  if(!interactive())
    mess[1] <- paste("Package 'mixbox' version", packageVersion("mixbox"))
  packageStartupMessage(mess)
  invisible()
}

Try the mixbox package in your browser

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

mixbox documentation built on May 29, 2024, 3:58 a.m.