Core dump on sapply misuse

Norm Josephy NJOSEPHY@bentley.edu
Sat, 16 Jan 1999 10:38:47 -0500 (EST)


Developers:

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

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 
emptor.

Thank you

Norman Josephy
Department Of Mathematical Sciences
Bentley College
Waltham, MA

E-Mail:  NJOSEPHY@BENTLEY.EDU
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._