Skip to content
Prev 20065 / 63421 Next

Return function from function with minimal environment

On Tue, 4 Apr 2006, Henrik Bengtsson wrote:

            
I don't think you want to remove baseenv() from the environment. If you 
do, no functions from baseenv will be visible inside fcn. These include 
"{" and "*", which are necessary for your function. I think the error 
message comes from being unable to find "{".

Also, there is no memory use from having baseenv in the environment, since 
all the objects in baseenv are always present.

 	-thomas


Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle