[R] Introduce a new function in a package?

TEMPL Matthias Matthias.Templ at statistik.gv.at
Wed Apr 6 16:01:12 CEST 2005


See at http://cran.r-project.org/doc/manuals/R-intro.pdf at page 54.

.First() can help you.

Or create an own package (see http://cran.r-project.org/doc/manuals/exts.pdf ) and load the package, when needed.

Best,
Matthias 
 




> -----Ursprüngliche Nachricht-----
> Von: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] Im Auftrag von Luis 
> Ridao Cruz
> Gesendet: Mittwoch, 06. April 2005 15:48
> An: r-help at stat.math.ethz.ch
> Betreff: [R] Introduce a new function in a package?
> 
> 
> R-help,
> 
> Sometimes I define functions I wish to have in any R session. 
> The obvious thing to do is copy-paste the code 
> The thing is that sometimes I don't know where I have the 
> function code.
> 
> My question is if somehow I could define a function and 
> "introduce" it (let's say 'base' package ) so that 
> could be used anytime I run a different R project.
> 
> Thank you in advance
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read 
> the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list