R/zzz.R

.onAttach <- function(lib, pkg)
{
  ## unlockBinding("forestChange", asNamespace("forestChange")) 
  version <- read.dcf(file.path(lib, pkg, "DESCRIPTION"), "Version")
  
  if(interactive())
    { # > figlet forestChange
        packageStartupMessage(
          "forestChange
version: ", version)
}
else
    { packageStartupMessage(
          "Package 'forestChange' version ", version) } 

  packageStartupMessage("Type 'citation(\"forestChange\")' for citing this R package in publications.")
  invisible()
}
  

Try the forestChange package in your browser

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

forestChange documentation built on May 2, 2019, 7:25 a.m.