From ggrothendieck at gmail.com  Thu Jan 31 21:44:26 2008
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Thu, 31 Jan 2008 15:44:26 -0500
Subject: [Rd] Pb with lapply()
In-Reply-To: <1201808038.47a222a606da2@webmail.fhcrc.org>
References: <1201803991.47a212d790acf@webmail.fhcrc.org>
	<971536df0801311033x6819be68l6e97658a3e844c96@mail.gmail.com>
	<1201808038.47a222a606da2@webmail.fhcrc.org>
Message-ID: <971536df0801311244k33ee6f1bod0d1f496fd32c3b4@mail.gmail.com>

I just checked and the
code that previously triggered the promises in lists
bug seems to work now so I guess it is a different
problem.

# code below previously triggered errors but now works
# R 2.6.2 (2008-01-26 r44181) on Vista
f <- function(x) environment()
z <- as.list(f(7))
dput(z)
structure(list(x = 7), .Names = "x")
z[[1]] == 7
force(z[[1]]) == 7


On Jan 31, 2008 2:33 PM,  <hpages at fhcrc.org> wrote:
> Hi Gabor,
>
> Quoting Gabor Grothendieck <ggrothendieck at gmail.com>:
>
> > The problem of promises not being evaluated in
> > lists has been discussed before.
> >
> > I think its fixed in the development version of R. See
> > r44139 on Jan 24, 2008 in http://developer.r-project.org/R.svnlog.2007
> >
>
> I'm using R-devel r44238 and the problem is still here.
>
> Cheers,
> H.
>
> > sessionInfo()
> R version 2.7.0 Under development (unstable) (2008-01-29 r44238)
> x86_64-unknown-linux-gnu
>
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
>
>
>



[Rd] Pb with lapply()
Gabor Grothendieck