View source: R/startup.utilities.R
| statnetStartupMessage | R Documentation |
This function uses information returned by packageDescription()
to construct a standard package startup message according to the
policy of the Statnet Project.
statnetStartupMessage(pkgname, friends = c(), nofriends = c())
pkgname |
Name of the package whose information is used. |
friends, nofriends |
No longer used. |
A string containing the startup message, to be passed to the
packageStartupMessage() call or NULL, if policy
prescribes printing default startup message. (Thus, if
statnetStartupMessage() returns NULL, the calling package should
not call packageStartupMessage() at all.)
Earlier versions of this function printed a more expansive message. This may change again as the Statnet Project policy evolves.
packageDescription(), packageStartupMessage()
## Not run:
.onAttach <- function(lib, pkg){
sm <- statnetStartupMessage("ergm")
if(!is.null(sm)) packageStartupMessage(sm)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.