Package Attach Hook Function
Hook triggered when package attached
.onAttach(lib, pkg)
lib
: a character string giving the library directory where the package defining the namespace was foundpkg
: a character string giving the name of the packageCPAT:::.onAttach(.libPaths()[1], "CPAT")
Useful links