Viewer bug: duplicated named elements in a list

When a list has duplicated named elements, the viewer repeats the first element twice

Shows up wrong in the viewer:

View(list(a = list(a1 = "x", a1 = 1), a = list(a1 = "y", a1 = 2)))

Shows up correctly in the console:

list(a = list(a1 = "x", a1 = 1), a = list(a1 = "y", a1 = 2))

$`a`
$`a`$`a1`
[1] "x"
$`a`$a1
[1] 1
$a
$a$`a1`
[1] "y"
$a$a1
[1] 2

Thanks for the bug report -- we're currently tracking this issue here. https://github.com/rstudio/rstudio/issues/2966

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.