Skip to content
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

Provide a View() and Data-Explorer-like experience for list objects #3028

Open
juliasilge opened this issue May 6, 2024 · 4 comments
Open
Labels
area: data explorer Issues related to Data Explorer category. area: variables Issues related to Variables category. enhancement New feature or request
Milestone

Comments

@juliasilge
Copy link
Contributor

In Positron, we represent list objects in our Variables pane with quite a lot of detail:

list-viewer

Early users have shared they would like to be able to explore this kind of view with more space in its own tab, like the Data Explorer. In RStudio, you can get a whole pane like that by doing View(my_amazing_model):

Screenshot 2024-05-06 at 1 59 10 PM

In Positron, View() errors on anything that is not rectangular.

cc @hadley

@juliasilge juliasilge added enhancement New feature or request area: variables Issues related to Variables category. labels May 6, 2024
@juliasilge juliasilge added this to the Future milestone May 6, 2024
@artmg
Copy link

artmg commented Sep 18, 2024

Following on from #4717 this would be a valuable addition, that would also comfort those making the transition from RStudio. The Variables pane in the Session panel does a reasonable job of allowing some exploration, but it allows just a limited space and distinguishing between different objects or their subelements is not obvious.

On the other hand having 'Data: Explorer' tabs up with the file editing tabs replicates very well the large view ability to navigate the structure of distinct objects that people will be familiar with in RStudio.

So perhaps, on View(object), if is.data.frame(x) || is.matrix(x) is not TRUE then an 'Object: Explorer' tab could be shown instead of the 'Data: Explorer'. It could have similar abilities to expand or hide that the Variables pane currently has, and always show the type. Perhaps to enhance the current RStudio experience it could bring over the 'show summary when closed' feature from the Variables pane. Finally 'breadcrumb' header or footer like in RStudio giving the navigation point, e.g. object[[2]][["structure"]][["path"]] is handy to view, copy or insert into the console.

@artmg
Copy link

artmg commented Sep 18, 2024

By extrapolation of the 'can we have a Viewer for Objects like Data Explorer?', this make me wonder if there should be another feature request issue for the Session panel to have a separate expansion, in addition to Data, Valuables and Functions, a new one for Objects. Like in Data there could be a little icon at the end, which opens the Object Explorer. Or is that going too far?

@jthomasmock
Copy link
Contributor

Another ask in, specific to opening list-columns data: #5919

@juliasilge juliasilge added the area: data explorer Issues related to Data Explorer category. label Jan 9, 2025
@petetronic
Copy link
Collaborator

petetronic commented Jan 17, 2025

By extrapolation of the 'can we have a Viewer for Objects like Data Explorer?', this make me wonder if there should be another feature request issue for the Session panel to have a separate expansion, in addition to Data, Valuables and Functions, a new one for Objects. Like in Data there could be a little icon at the end, which opens the Object Explorer. Or is that going too far?

Thanks @artmg, I logged a separate issue #6032 as I recently received a related request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: data explorer Issues related to Data Explorer category. area: variables Issues related to Variables category. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants