[R] Suimmary of answers : Possible (ab)use of lexical scoping in R ?

From: Emmanuel Charpentier <charpent_at_bacbuc.dyndns.org>
Date: Sun 22 May 2005 - 10:30:16 EST

Dear List,

I asked how to create a set of functions (and maybe variables) shared by another set of functions but hidden from the "main" environment.

Duncan Murdoch and Brian Ripley advised to use the package creation system. Brian ripley (and someone else, offlist) also pointed me to the local() function, which creates new environments with specified contents, and which I was unaware of (btw, when this function has been introduced ? It is mentioned neither in MASS 4th edition index, nor in 'S Programming' index).

After re-reading the available docs (which I may have misunderstood...), I come to the following conclusions :

Since repeated experiences have proved to my satisfaction that I am piss-poor at top-down design, I will probably use the environment manipulation for initial head-scratching phase, switching to package creation at the formalization phase.

A big "thank you" to all respondents, whose answers have been *very* useful.

                                        Emmanuel Charpentier

-- 
Emmanuel Charpentier			charpent@bacbuc.dyndns.org

______________________________________________
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
Received on Sun May 22 10:36:30 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:59 EST