Re: [Rd] relist() is broken when the skeleton is a list with empty list elements

2013-07-01 Thread Hervé Pagès
Hi, On 06/07/2013 03:08 PM, Hervé Pagès wrote: Hi, relist() is broken when the skeleton is a list with empty list elements: x - list(1:3, integer(0), 11:14) relist(unlist(x), x) [[1]] [1] 1 2 3 [[2]] [1] 11 3 [[3]] [1] 11 12 13 14 Hard to believe that such a bug

[Rd] relist() is broken when the skeleton is a list with empty list elements

2013-06-07 Thread Hervé Pagès
Hi, relist() is broken when the skeleton is a list with empty list elements: x - list(1:3, integer(0), 11:14) relist(unlist(x), x) [[1]] [1] 1 2 3 [[2]] [1] 11 3 [[3]] [1] 11 12 13 14 Hard to believe that such a bug has been around for 6 years (i.e. since the introduction