Re: [R] namespace? environment? how to manage functions?

2010-07-22 Thread Michael Friendly
In http://tolstoy.newcastle.edu.au/R/e7/help/09/06/1900.html Jim Holtman wrote: Here is the way that I do it instead of creating a package of my functions. I 'source' the file into an environment and then attach the environment to keep the global from being clustered: # read my functions

Re: [R] namespace? environment? how to manage functions?

2010-07-22 Thread Duncan Murdoch
On 22/07/2010 8:58 AM, Michael Friendly wrote: In http://tolstoy.newcastle.edu.au/R/e7/help/09/06/1900.html Jim Holtman wrote: Here is the way that I do it instead of creating a package of my functions. I 'source' the file into an environment and then attach the environment to keep the global

[R] namespace? environment? how to manage functions?

2009-06-19 Thread whizvast
Hi, useRs- I have been building a set of functions over time and now my R_GlobalEnv becomes too crowded. I would like to put all my functions under the same namespace/environment. Ideally, I would like to call them using env::func as in C++. The following code almost do the jobs I want -

Re: [R] namespace? environment? how to manage functions?

2009-06-19 Thread jim holtman
Here is the way that I do it instead of creating a package of my functions. I 'source' the file into an environment and then attach the environment to keep the global from being clustered: # read my functions into a environment .my.env - new.env() sys.source('c:/perf/bin/perfmon.r',