dodgy list operation (PR#298)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
26 Oct 1999 16:01:55 +0200
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._