Re: [Rd] bug in seq_along

2009-07-20 Thread Kasper Daniel Hansen
This has now been fixed in R-2.9 and R-devel by Martin Maechler. Thanks Kasper On Jul 13, 2009, at 15:43 , Hervé Pagès wrote: Hi Kasper and R developers, Kasper Daniel Hansen wrote: Using the IRanges package from Bioconductor and somewhat recent R-2.9.1. ov = IRanges(1:3, 4:6) length(ov) #

Re: [Rd] bug in seq_along

2009-07-13 Thread Hervé Pagès
Hi Kasper and R developers, Kasper Daniel Hansen wrote: Using the IRanges package from Bioconductor and somewhat recent R-2.9.1. ov = IRanges(1:3, 4:6) length(ov) # 3 seq(along = ov) # 1 2 3 as wanted seq_along(ov) # 1! I had expected that the last line would yield 1:3. My guess is that someh

[Rd] bug in seq_along

2009-07-08 Thread Kasper Daniel Hansen
Using the IRanges package from Bioconductor and somewhat recent R-2.9.1. ov = IRanges(1:3, 4:6) length(ov) # 3 seq(along = ov) # 1 2 3 as wanted seq_along(ov) # 1! I had expected that the last line would yield 1:3. My guess is that somehow seq_along don't utilize that ov is an S4 class with a