[R] A question about R environment

From: Tong Wang <wangtong_at_usc.edu>
Date: Tue 09 Jan 2007 - 02:09:28 GMT


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"  ........

______________________________________________
R-help@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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Jan 09 17:51:06 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 09 Jan 2007 - 17:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.