From tlumley at u.washington.edu  Tue Dec  9 17:04:34 2003
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Tue Dec  9 17:03:16 2003
Subject: [Rd] Maybe some bug on sapply(PR#5628)
In-Reply-To: <20031209144041.B15BBF3C4@slim.kubism.ku.dk>
References: <20031209144041.B15BBF3C4@slim.kubism.ku.dk>
Message-ID: <Pine.A41.4.58.0312090803420.114602@homer03.u.washington.edu>

On Tue, 9 Dec 2003 brahm@alum.mit.edu wrote:

> I can confirm this bug on Solaris 2.8 running R-1.8.1.  Here's a simplified
> version:
>
> y <- list()
> sapply(1, function(i) y[[i]] <- expression(1))
> cbind(1, rep(2,1))
>

Furthermore, it doesn't happen with lapply() or with sapply(,
simplify=FALSE), so it is linked to the simplify step

	-thomas


[Rd] Maybe some bug on sapply(PR#5628)
Thomas Lumley