[R] Storing and managing custom R functions for re-use

Michael Dewey info at aghmed.fsnet.co.uk
Sun Jul 10 12:27:38 CEST 2011


At 12:30 09/07/2011, Simon Chamaillé-Jammes wrote:
>Dear all,
>
>sorry if this is a bit on the sidetrack for R-help.
>
>As a regular R user I have developed quite a lot 
>of custom R functions, to the point of not 
>always remembering what I have already programmed, where the file is and so on.
>I was wondering what other people do in this 
>regards. A basic file with all your functions, 
>or a custom R package, or directly integrated 
>into a profile file ??? I'm considering that a 
>blog with tagged posts may be a good solution 
>(and really good ones could join R-bloggers maybe).
>
>If someone is happy to share what (s)he considers good practice, thanks.

I spent too many years doing what you say you are 
doing because creating a package seemed quite 
complicated. Once I took the plunge I found it 
well worth the effort. You do have to invest time and effort to begin with.

You will find
?package.skeleton
?prompt
rewarding reading as well as those sections of 
the R extensions document which are relevant to your use.

Good luck


>simon
>
>

Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html



More information about the R-help mailing list