[R] Function execution on package load?

Johannes Graumann johannes_graumann at web.de
Wed Oct 20 14:39:20 CEST 2010


Hi,

Can anyone give me a pointer on howto make a package execute a function at 
loading?

Following an older post (http://bit.ly/cS1Go4), I'd like to do something 
along the lines of 

> .localstuff <- new.env()
> .localstuff$OftenUsedData <- read.csv(...)

upon loading the package ...

Thanks, Joh



More information about the R-help mailing list