Displaying 1 result from an estimated 1 matches for "4bbaa84f".
2013 Jun 07
1
relist() is broken when the skeleton is a list with empty list elements
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 of relist()) without ever being noticed.
Cheers,
H.
> sessionInfo()
R