.rloggingOptions <- new.env()
.onLoad <- function(libname, pkgname) {
SetTimeStampFormat()
SetFilenameSuffixes()
SetLogFile()
SetLogLevel()
lockEnvironment(.rloggingOptions)
}
.onAttach <- function(libname, pkgname) {
pkgversion <- read.dcf(system.file("DESCRIPTION", package=pkgname),
fields="Version")
msg <- paste("Package", pkgname, "version", pkgversion,
"\nNOTE: - Logging level is set to", GetLogLevel(),
"\n - Output file is", GetLogFile(),
"\n - See 'package?rlogging' for help.")
packageStartupMessage(msg)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.