Core dump on sapply misuse

Norm Josephy
Sat, 16 Jan 1999 10:38:47 -0500 (EST)


I hope this is the appropriate place to post this request. 

I am getting a core dump in an application of sapply.  A 
simplified example is the following.  Because simplify=TRUE 
is the default for sapply and tapply, the following works

	x <- 1:5; sapply(x,list)

but the following dumps core with an access violation

	x <- 1:5; myf <- function(x) list(x,x); sapply(x,myf)
I am running R version 0.63.1 under Windows NT 4.00 (p.s. 
and am also experiencing the 'impossible to access 
clipboard' problem with graphics under NT but not under 

Could a gentler message be encoded (e.g. a check after the 
call to lapply) to inform the user that sapply (and tapply) 
is being abused?  A core dump seems a rather harsh caveat 

Thank you

Norman Josephy
Department Of Mathematical Sciences
Bentley College
Waltham, MA

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: