You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I also have found this problem.
Viewing lists is the only thing I prefer from RStudio, it's so much more comfortable. I work with phylogenies and my lists are quite big, VScode's viewer expands them automatically and they take forever...
I would love it if lists opened in a collapsed form at least, and it would be great to see more information about them like @Zahrawi pointed out!
@jimenamateo@Zahrawi
Just as a comment - I am using the jsonedit function of the listviewer package. It's quite convenient and IMHO serves the purpose you've been looking for.
Thank you @werkstattcodes, your jsonedit function shows the list directly collapsed, so I don't have to collapse it myself, but it is still a very uncomfortable way of seeing the information.
It would be great to have every element as a table, like the gif @datasciencemedicine shared!
Totally agree! For me, this is the major downside of using R in VS Code instead of RStudio and the only reason I still switch back to RStudio from time to time. There are some projects that heavily depend on large lists which are a pain in the ass to work on in VS Code. Also experienced VS Code crashing when trying to view some of these lists.
Reacted by Hasan Jamil, MD, MPH, Daniel Cooper, Jimena Mateo Martín and crazyxiaoj
It is very difficult to work with large nested lists (compared to RStudio). If you could provide a mechanism to represent lists following RStudio's fashion it would be great 😀
Hello. I also join this request. I am working with a list composed of data frames and can't view anything when I run View().
However, in Rstudio it works fine.
Activity
jimenamateo commentedon Aug 28, 2023
Hi,
Yes, I also have found this problem.
Viewing lists is the only thing I prefer from RStudio, it's so much more comfortable. I work with phylogenies and my lists are quite big, VScode's viewer expands them automatically and they take forever...
I would love it if lists opened in a collapsed form at least, and it would be great to see more information about them like @Zahrawi pointed out!
werkstattcodes commentedon Aug 31, 2023
@jimenamateo @Zahrawi
Just as a comment - I am using the jsonedit function of the listviewer package. It's quite convenient and IMHO serves the purpose you've been looking for.
`library(tidyverse)
library(listviewer)
df_l <- mtcars %>%
nest(,.by=cyl)
listviewer::jsonedit(df_l$data)
`
jimenamateo commentedon Oct 26, 2023
Thank you @werkstattcodes, your jsonedit function shows the list directly collapsed, so I don't have to collapse it myself, but it is still a very uncomfortable way of seeing the information.
It would be great to have every element as a table, like the gif @datasciencemedicine shared!
m4x74 commentedon Nov 7, 2023
Totally agree! For me, this is the major downside of using R in VS Code instead of RStudio and the only reason I still switch back to RStudio from time to time. There are some projects that heavily depend on large lists which are a pain in the ass to work on in VS Code. Also experienced VS Code crashing when trying to view some of these lists.
romancardenas commentedon Nov 16, 2023
Same here!
It is very difficult to work with large nested lists (compared to RStudio). If you could provide a mechanism to represent lists following RStudio's fashion it would be great 😀
castellco commentedon Apr 18, 2024
Hello. I also join this request. I am working with a list composed of data frames and can't view anything when I run View().

However, in Rstudio it works fine.
aleortiz-uchicago commentedon May 8, 2026
Here to join @castellco, as I have the exact same issue!
Fred-Wu commentedon Sep 20, 2026
This feature should be added in #1741 after the v3.0 release, allowing more time for polishing and testing.