[R] Sourcing files with library

Yi, Derek Derek.Yi at FMR.COM
Tue Jun 25 15:37:20 CEST 2002


Hi everyone,

I have written a class with methods that extend generic functions such as
as.data.frame or show.  When I load this package, I want to ensure that
these methods - along with the other functions in the file - are added to
R's search path or updated, if necessary.  I have made a package using
check/build/INSTALL.

Will a simple library() call on the package accomplish this?  I recall
reading somewhere that there is a way to force the sourcing of R files
within the package, but I don't remember where...

Many thanks,
Derek

> R.version
  _                   
platform sparc-sun-solaris2.6
arch     sparc               
os       solaris2.6          
system   sparc, solaris2.6   
status                       
major    1                   
minor    5.0                 
year     2002                
month    04                  
day      29                  
language R    
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list