thomas@biostat.washington.edu
2000-Jul-28 15:20 UTC
[Rd] Re: [R] gremlin in rep() (PR#619)
On Fri, 28 Jul 2000, Colin Farrow wrote:> the following occurred inadvertently and brought R-1.1.0 down > > rep(1:3, c(4,2,-6)) > Segmentation Fault (core dumped)In main/seq.c:rep2 we only check that the total length of the result is positive, not that each part is. Easy fix, I think. -thomas> > platform i686-pc-linux-gnu > arch i686 > os linux-gnu > system i686, linux-gnu > status > major 1 > minor 1.0 > year 2000 > month June > day 15 > language R > also on Solaris2.7 > > -- > Colin Farrow > Computing Service, University of Glasgow, Glasgow G12 8QQ > Tel: 0141 330 4862, c.farrow@compserv.gla.ac.uk > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help 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-help-request@stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._