Re: dodgy list operation (PR#298)

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: dodgy list operation (PR#298)
From: Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
Date: Wed 27 Oct 1999 - 00:01:55 EST


Message-ID: <x2ln8q8bl8.fsf@blueberry.kubism.ku.dk>

J.C.Rougier@durham.ac.uk writes:

> I can generate a segmentation fault as follows, where I would expect a
> syntax error:
>
> fred <- as.list(1:10)
> lapply(fred, "[[")
>
...
> status.rev 0
> major 0
> minor 64.1
             ^^^^
Ahem. That bug is certainly not present in 0.65.1 or later:

R> fred <- as.list(1:10)
R> lapply(fred, "[[")
Error in FUN(X[[i]], ...) : no index specified

> year 1999
> month May
> day 8
> language R

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:09 EST