Skip to content
Prev 308250 / 398506 Next

Autorun when library("xxx") is called

Dear List Member

Is there a mechanism to automatically run a piece of R code when a 
package is loaded using library("xxx") ? Preferentially that piece of R 
code should be located inside the package.
I would like that this piece of code checks on a server if an update is 
available just at the time of package load (the package is not still in 
CRAN; it is a work in progress with several testers).

Thanks a lot for your advice,

Marc