posit-dev / posit-dev/positron
Variables View: For data frame columns, consider showing str representation rather than individual values
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
Consider the bulldozer blue book data frame (details on downloading and reading it are here: https://github.com/rstudio/positron/issues/966)
The environment pane currently shows up to 100 individual values when you expand this column:
However, there is a print method for the column that IMO provides a much more useful summary (R data frames also support this behavior):
I think that in the Environment pane we should have the notion of data types that terminate in a textual summary (rather than just recursing into long displays of individual scalars)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Variables View and Environment pane entry points that expand data-frame columns. Review the bulldozer blue book example and issue #966 for the data shape and current behavior. Done means long columns show a useful textual summary instead of expanding into many individual scalar values, with the supported data types clearly defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100