Skip to content

Allow previewing altrep objects - #4764

Merged
jmcphers merged 1 commit into
masterfrom
bugfix/altrep-preview
May 6, 2019
Merged

jmcphers merged 1 commit into
masterfrom
bugfix/altrep-preview

Conversation

@jmcphers

@jmcphers jmcphers commented May 6, 2019 •

Copy link
Copy Markdown
Member

Currently, objects containing ALTREPs cannot be expanded in the Environment pane. This is because we treat them as empty to avoid prematurely unrolling the ALTREPs (which will happen if we try to compute the size of the objects).

This change refines the behavior such that, for data frames containing ALTREP columns (e.g. from sequences or lazy-load packages like vroom), the Environment pane will show the objects as expandable, but not actually ask for data unless the user manually expands the object. This is the same behavior we have today for very large objects.

Fixes #4758.

@jmcphers jmcphers changed the title allow previewing altrep objects Allow previewing altrep objects May 6, 2019
@jmcphers
jmcphers requested a review from gtritchie May 6, 2019 23:07

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Environment pane won't expand contents for data frames with ALTREP columns

2 participants