New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - Lists within a list having the same name are shown to have the same content. Reproduction violates best practice. #2966
Comments
|
The problem here is that the Object Explorer attempts to index the object by name, and since names are duplicated the first entry with that name is selected ( |
|
Reproduced on 1.2.747. |
If one tries to view an xml/html object, there naturally would be lots of elements with the same names due to tags being converted into names. |
|
Putting this in 1.5 since several people have discovered this. |


System details
Steps to reproduce the problem
Clicking on the generated list in the global environment, so that the content of the list is displayed in the upper left window.
The window shows the content of both lists to be the same, although they are not, as can be checked with
a[[1]][[1]] == a[[2]][[1]]Describe the problem in detail
When displaying lists within lists, RStudio displays the same content for lists with the same name, even if the real content is different. This does not seem to happen with simple lists:
Describe the behavior you expected
To reproduce this bug you need to violate best practice. R seems, however, able to handle this, so I expect RStudio to work in the same way or produce a warning of some kind.
This is a really minor problem and should not happen for anyone coding in a reasonable manner. I still wanted to report this, as the behavior of RStudio deviates from the behavior of R itself.
The text was updated successfully, but these errors were encountered: