R/zzz.R

.onAttach <- 
function(libname, pkgname) {
    ver <- read.dcf(file=system.file("DESCRIPTION", package=pkgname), fields="Version")
    packageStartupMessage(" ")
    packageStartupMessage(paste("This is", pkgname, ver))
    packageStartupMessage(" ")
    packageStartupMessage("Type changes(\"diezeit\") to see changes/bug fixes, help(diezeit) for documentation")
    packageStartupMessage("or citation(\"diezeit\") for how to cite diezeit.")
    packageStartupMessage(" ")
}


#' @title View changes notes.
#' @description \code{changes} brings up the NEWS file of the package. 
#'
#' @param pkg Set to the default "diezeit". Other packages make no sense.
#' @export
#' @examples
#' \dontrun{
#' changes()
#' }
changes <- 
function(pkg="diezeit") {
    if(pkg=="diezeit") file.show(file.path(system.file(package="diezeit"), "NEWS"))
}

Try the diezeit package in your browser

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

diezeit documentation built on May 2, 2019, 2:50 p.m.