[R] A question about R environment

Tong Wang wangtong at usc.edu
Tue Jan 9 03:09:28 CET 2007


Hi  all,
     
I created environment  "mytoolbox" by :   mytoolbox <- new.env(parent=baseenv())
Is there anyway I put it in the search path ?    

If you need some background :
  In a project, I often write some small functions,  and load them into my workspace directly,   so when I list the objects 
  with ls(), it looks pretty messy.  So I am wondering if it is possible to creat an environment,  and put these tools into 
  this environment.  For example,  I have functions    fun1(), fun2() ......    and creat an environment  mytoolbox  which 
  contains all these functions.  And it should be somewhere in the search path:   ".GlobalEnv"        "mytoolbox"                        "package:methods"  ........



More information about the R-help mailing list