R/zzz.R

Defines functions .onAttach

## this is the equivalent of .First.lib (for packages with a namespace)
## note that it is general, so the name of the package etc doesn't need
## to be specified (just say whatever you want in the prints though).

.onAttach <-function(lib,pkg)
{
ver <- read.dcf(file.path(lib, pkg, "DESCRIPTION"), "Version")
     ver <- as.character(ver)
curdate <- read.dcf(file.path(lib, pkg, "DESCRIPTION"), "Date")
    curdate <- as.character(curdate)

# Welcome message (MAN):

packageStartupMessage(paste(
"\n",
"******************************************************************************\n",
"  liftLRD: a package for Hurst exponent estimation of irregular time series\n\n",
"            --- Written by Matt Nunes and Marina Knight ---\n",
"                  --- Contributions from Guy Nason ---\n",
"            Current package version: ",ver," (",curdate,") \n\n",
"\n",
"******************************************************************************\n","\n")
)

}

Try the liftLRD package in your browser

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

liftLRD documentation built on Sept. 17, 2023, 9:06 a.m.