[Rd] Attributes of top level environments clobbered (was Re: [R] possible bug in function 'var' in R 2.7.2?)

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri, 03 Oct 2008 11:08:52 -0400

On Fri, Oct 3, 2008 at 3:23 AM, Martin Maechler <maechler_at_stat.math.ethz.ch> wrote:
> a much better (and much less error-prone) idea would be to install
> R 2.8.0 alpha even now.
> It will become 'beta' early next week.
> We are asking the R community to please install and use
> pre-release versions of R (if you can / are allowed to)
> at least from beta onwards, and report problems you see early on
> *before* the final release.

The bug discussed in the following year-old post suggested that the problem of clobbering attributes of top level environment objects would be fixed for 2.7 but its still in R version 2.7.2 (2008-08-25)" and also still in "R version 2.8.0 alpha (2008-10-01 r46589)"


The Avoiding R Bugs section of this page:


has more discussion as well as a list of some other R bugs.

This can be tested by creating a package with these two files only:

Package: testlazy
Version: 1.0-0
Date: 2008-10-03
Title: Test lazy loading
Author: G Grothendieck
Maintainer: G Grothendieck <ggrothendieck_at_gmail.com> Description: Test lazy loading with top level objects. Depends: proto
LazyLoad: yes
License: GPL-2
TopLevel <- proto()


And then testing it:


If its class is "environment" only then the class attribute was stripped.

R-devel_at_r-project.org mailing list
Received on Fri 03 Oct 2008 - 15:15:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 03 Oct 2008 - 16:30:16 GMT.

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

list of date sections of archive