[R] Event after a package is loaded

Duncan Murdoch murdoch.duncan at gmail.com
Thu Oct 9 13:32:54 CEST 2014


On 09/10/2014, 6:53 AM, marcel Austenfeld wrote:
> Hello,
> 
> i would like to call a self defined R function after a package (not a specific one - library (anyAvailablePackage)) has been loaded into the R environment.
> I there a general method available in R which can be used for that?

No, I don't think so.  ?setHook defines user hooks, but they are set
separately by package, not generally.  You could change the
loadNamespace function if you want, but it won't work for other users.

Duncan Murdoch



More information about the R-help mailing list