[R] creating library

yoooooo magno_yu at ml.com
Thu May 29 16:50:04 CEST 2008


Hi,  

   I'm able to create a library with R CMD INSTALL cmd, etc... I'm just
wondering.. is it possible that when the user says library(boo), it runs
some initialization code? 

   I have a dumb R file that is:

print(2)
boo <- function(x){}

  when I R CMD INSTALL the library, I'm able to see 2 in my unix console..
but when I do

library(boo)

  in R afterwards.. I don't see the 2, but the boo function is there. Is
there anyways to have the library to run some initialization code when
loading? Thanks!

- yoooooooo
-- 
View this message in context: http://www.nabble.com/creating-library-tp17536275p17536275.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list