Skip to content

View() data table disappears after switching tabs and only re-renders after toggling the "Summary" button #18215

Open

Description

@daxvs

System details

RStudio Edition : Desktop
RStudio Version : RStudio 2026.06.0+242
OS Version      : Windows 11 Home Single Language 25H2 26200.8737
R Version       : 4.6.0 (2026-04-24 ucrt)

Steps to reproduce the problem

Run View(mtcars) (or any other dataframe) from an R script.
Verify that the data viewer tab opens and displays the dataset correctly.
Switch to another tab in the source pane (e.g., click back on your .R script tab).
Switch back to the mtcars data viewer tab.
Notice that the data table is not visible (the viewer area is blank).
Click the Summary button in the viewer toolbar. Notice that the data table finally re-renders.
Switch tabs again; the bug repeats, requiring another click on Summary to restore the table.

Describe the problem in detail

When viewing a dataset using View(), the data table renders perfectly the first time. However, when I switch to another tab (such as an R script) and then switch back to the data viewer tab, the data table fails to render and appears blank.

The data only reappears after I click the Summary button in the viewer toolbar (which toggles the statistics panel and forces the UI to re-render). This behavior repeats every time I switch between tabs, requiring me to toggle the Summary button back and forth every time I want to see my data.

Image

#/

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added theissue type on Jul 14, 2026
  2. gtritchie commented on Jul 14, 2026

    @gtritchie
    Member

    @kevinushey I haven't been able to repro this with either 2026.06 or 2026.07, but I only tried on Mac so far.

  3. kevinushey commented on Jul 14, 2026

    @kevinushey
    Collaborator

    I'm not able to reproduce on Windows either. @daxvs, the video you shared is with a different dataset than the one you report in the reproduction example. Are you certain the issue reproduces even with mtcars? If so, can you share a video?

  4. self-assigned this
    on Jul 14, 2026
  5. daxvs commented on Jul 14, 2026

    @daxvs
    Author

    Hi! Thanks for looking into this.
    I just re-tested, and mtcars is indeed too small to trigger the issue.
    It seems the bug requires a slightly larger dataset to become visible. The video I shared was recorded using a larger dataset where the behavior occurs, but you can easily reproduce it using iris dataset instead of mtcars.

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions