From brahm at alum.mit.edu  Tue Dec  9 15:40:41 2003
From: brahm at alum.mit.edu (brahm@alum.mit.edu)
Date: Tue Dec  9 15:39:12 2003
Subject: [Rd] Maybe some bug on sapply and cbind (PR#5628)
Message-ID: <20031209144041.B15BBF3C4@slim.kubism.ku.dk>

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))

  [ Process R segmentation Fault at Tue Dec  9 09:20:33 2003 ]

Curiously, replacing the third line with
  cbind(1, 2)
does not casue a crash, even though rep(2,1) == 2 !


> R.version
platform sparc-sun-solaris2.8
arch     sparc               
os       solaris2.8          
system   sparc, solaris2.8   
status                       
major    1                   
minor    8.1                 
year     2003                
month    11                  
day      21                  
language R                   
-- 
                              -- David Brahm (brahm@alum.mit.edu)


[Rd] Maybe some bug on sapply and cbind (PR#5628)
brahm@alum.mit.edu