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",
"  CliftLRD: a package for Hurst exponent estimation of irregular complex-valued time series\n\n",
"                      --- Written by Matt Nunes and Marina Knight ---\n",
"                      Current package version: ",ver," (",curdate,") \n\n",
"\n",
"**********************************************************************************************\n","\n")
)

}
nunesmatt/CliftLRD documentation built on May 17, 2019, 1:58 p.m.