From murdoch at stats.uwo.ca  Wed Apr 26 16:09:26 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 26 Apr 2006 10:09:26 -0400
Subject: [Rd] R 2.3.0: Use of NULL as an environment is deprecated
In-Reply-To: <E4A9111DA23BA048B9A46686BF727CF4039087@DEFRAXMB01.corp.amvescap.net>
References: <E4A9111DA23BA048B9A46686BF727CF4039087@DEFRAXMB01.corp.amvescap.net>
Message-ID: <444F7F16.8090107@stats.uwo.ca>

Pfaff, Bernhard Dr. wrote:
> Dear R-Devel subscriber,
> 
> first, let me express my thank to the R-Core team for the new release! I
> appreciate their efforts and time spent to enhance R.
> In accordance with the 'NEWS' file (see excerpt of it below), 
> 
> [...
> o	Changed the environment tree to be rooted in an empty
> 	environment, available as emptyenv().  baseenv() has been
> 	modified to return an environment with emptyenv() as parent,
> 	rather than NULL.
> 
> ...
> 
> o	Use of NULL as an environment is deprecated and gives a warning.
> ...]
> 
> I detected the warning message as announced for a couple of contributed
> packages, e.g.
> 
> library(ape)
> library(car)
> library(chron)
> library(urca)
> 
> Now, I am wondering what would be a suitable/elegant way to fix the
> packages' code such that the warning does not appear any longer. I am
> adressing this question to R-devel, because this might also be of
> interest for other package mainatiners.

If you are a maintainer of a package getting this warning, then you 
should replace all uses of NULL as an environment by baseenv() (to get 
the previous behaviour), or emptyenv() (if you thought env=NULL gave you 
an empty environment).

There's really not much a non-maintainer can do about this warning.

Duncan Murdoch

> 
> Many thanks in advance for any hints and pointers.
> 
> Regards,
> Bernhard
> 
> 
> 
> 
> Dr. Bernhard Pfaff
> Global Structured Products Group
> (Europe)
> 
> Invesco Asset Management Deutschland GmbH
> Bleichstrasse 60-62
> D-60313 Frankfurt am Main
> 
> Tel: +49(0)69 298 07230
> Fax: +49(0)69 298 07178
> Email: bernhard_pfaff at fra.invesco.com 
> *****************************************************************
> Confidentiality Note: The information contained in this mess...{{dropped}}
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] R 2.3.0: Use of NULL as an environment is deprecated
Duncan Murdoch