Closed jsta closed 8 years ago
Per the "LAGOS ideas document" print citation information on package load?
To display an informative message when the package loads. This might make usage conditions clear, or display useful tips. Startup messages is one place where you should use .onAttach() instead of .onLoad(). To display startup messages, always use packageStartupMessage(), and not message(). (This allows suppressPackageStartupMessages() to selectively suppress package startup messages).
> .onAttach <- function(libname, pkgname) {
packageStartupMessage("Welcome to my package")
}
Pointing users to the database paper - something that won't necessarily be in the cite() function - might be nice.
See http://r-pkgs.had.co.nz/inst.html#inst-citation