Re: [Rd] eapply() fails on baseenv() (PR#8761)

From: <ripley_at_stats.ox.ac.uk>
Date: Tue 11 Apr 2006 - 13:06:57 GMT


This is because baseenv() is special and has neither HASHTAB nor FRAME. R_lsInternal shows how to treat it, and I will commit a fix shortly.

On Tue, 11 Apr 2006, murdoch@stats.uwo.ca wrote:

> eapply() works on most environments, but not on baseenv(). For example,
>
> > x <- 1
> > eapply(globalenv(), function(x) x)
> $x
> [1] 1
>
> > eapply(baseenv(), function(x) x)
> list()
>
> I'm probably not going to have time to work on this before 2.3.0, but I
> don't think it's really urgent; if no one else fixes it first I'll do it
> after the release.
>
> Duncan Murdoch
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue Apr 11 23:34:21 2006

This archive was generated by hypermail 2.1.8 : Tue 11 Apr 2006 - 14:17:00 GMT