Skip to content
Prev 20070 / 63421 Next

Return function from function with minimal environment

On 4/4/06, Henrik Bengtsson <hb at maths.lth.se> wrote:
Is there any reason to use

   env <- new.env(parent=baseenv())

instead of just

   env <- baseenv() ?

The extra environment being created seems to serve no purpose.