R/zzz.R

Defines functions .onAttach JANE_startup_message

JANE_startup_message <- function(){

  msg <- c(paste0(path <- r"(
+-------------------------------------------+
|    ___  ________  ________   _______      |
|   |\  \|\   __  \|\   ___  \|\  ___ \     |
|   \ \  \ \  \|\  \ \  \\ \  \ \   __/|    |
| __ \ \  \ \   __  \ \  \\ \  \ \  \_|/__  |
||\  \\_\  \ \  \ \  \ \  \\ \  \ \  \_|\ \ |
|\ \________\ \__\ \__\ \__\\ \__\ \_______\|
| \|________|\|__|\|__|\|__| \|__|\|_______||
+-------------------------------------------+  version )", 
  utils::packageVersion("JANE")),
  "\nType 'citation(\"JANE\")' for citing this R package in publications.")
  return(msg)
}

.onAttach <- function(lib, pkg)
{
  # startup message
  msg <- JANE_startup_message()
  packageStartupMessage(msg)      
  invisible()
}

Try the JANE package in your browser

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

JANE documentation built on Aug. 12, 2025, 1:08 a.m.