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

2011-07-12 Thread Bert Gunter
$", "", txt) } > # You can also put data into the list: > MyFunctions$ >  tau = 2 * pi > # etc... > attach(MyFunctions) > rm(MyFunctions) > > All that is in MyFunctions.R which I can source() again when I update it. > >>>> > > From: "A

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

2011-07-12 Thread Steve Taylor
unctions.R which I can source() again when I update it. >>> From: "Abhijit Dasgupta, PhD" To: CC: Date: 10/Jul/2011 1:40a Subject: Re: [R] Storing and managing custom R functions for re-use I think most of us are in a similar situation. I've usually kept mine in a file

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

2011-07-10 Thread steven mosher
Same here. Just made my first package and regret not having learned how to do it from the very beginning. Steve On Sun, Jul 10, 2011 at 3:27 AM, Michael Dewey wrote: > At 12:30 09/07/2011, Simon Chamaillé-Jammes wrote: > >> Dear all, >> >> sorry if this is a bit on the sidetrack for R-help. >>

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

2011-07-10 Thread Michael Dewey
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 wo

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

2011-07-09 Thread Duncan Murdoch
On 11-07-09 7:30 AM, 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. You real

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

2011-07-09 Thread Jim Lemon
On 07/09/2011 09:30 PM, 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 w

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

2011-07-09 Thread Tyler Rinker
I personally place functions like this in my .First function under the .Rprofile, making them instantly accessible. I also keep a function called my.fun() which lists a data frame containing a column of all the function names, one for arguments, and a brief description. This also goes in .Fir

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

2011-07-09 Thread Barry Rowlingson
On Sat, Jul 9, 2011 at 2:37 PM, Abhijit Dasgupta, PhD wrote: > I think most of us are in a similar situation. I've usually kept mine in a > file which is sourced when I start R. The main problem I have with this is > that it clutters up my environment with a lot of stuff I don't need all the > tim

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

2011-07-09 Thread Abhijit Dasgupta, PhD
I think most of us are in a similar situation. I've usually kept mine in a file which is sourced when I start R. The main problem I have with this is that it clutters up my environment with a lot of stuff I don't need all the time. I'm in the process of creating a custom package which will be l