.onAttach <- function(...){
## Retrieve Year Information
date <- date()
x <- regexpr("[0-9]{4}", date)
this.year <- substr(date, x[1], x[1] + attr(x, "match.length") - 1)
# Retrieve Current Version
this.version = packageVersion("RiemBaseExt")
## Print on Screen
packageStartupMessage("**---------------------------------------------------------**")
packageStartupMessage("** RiemBaseExt ")
packageStartupMessage("** - Extension to 'RiemBase' Package")
packageStartupMessage("** ")
packageStartupMessage("** Version : ",this.version," (",this.year,")",sep="")
packageStartupMessage("** Maintainer : Kisung You (kyoustat@gmail.com)")
packageStartupMessage("**")
packageStartupMessage("** Please share any bugs or suggestions with the maintainer.")
packageStartupMessage("**---------------------------------------------------------**")
}
.onUnload <- function(libpath) {
library.dynam.unload("RiemBaseExt", libpath)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.