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

Thomas Lumley tlumley at u.washington.edu
Tue Dec 9 17:04:34 MET 2003


On Tue, 9 Dec 2003 brahm at 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



More information about the R-devel mailing list