Skip to content

Pinned columns in the data viewer do not remain pinned when switching columns #17835

Closed

Description

@aghaynes

System details

RStudio Edition : Desktop
RStudio Version : 2026.05.0
OS Version      :  Windows
R Version       : 4.5.2

Steps to reproduce the problem

Load a large dataset (ncol > 200) into memory.

df <- data.frame(Col1 = rnorm(10))
for(i in 2:300){
  df[, paste0("Col", i)] <- rnorm(10)
}
View(df)

Open the dataset in the data viewer. Pin the first column.

Image

Scrolling, the pinned column stays, as it should. Use the "Cols:" selector (beside the filter button) to view the last columns of the dataset. The pinned column now changes from the original column to the first column of the new set of variables.

Image

Describe the problem in detail

The behaviour of pinned variables is not especially helpful currently - the pinned column is only visible within the set of variables that includes it. E.g. Col1 is in Col1:Col200, but as soon as you view Col201:Col400, it is no longer shown. The pinned column should be added/moved when you change the view (i.e. using the arrows to change Cols: from 1:200 to 201 to 400 should actually change it to c(1, 201:400)

Describe the behavior you expected

In the example above, rather than the pinned column switching to Col101, it should have stayed Col1.

  • 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
    new
    on Jun 3, 2026
  2. self-assigned this
    on Jun 3, 2026
  3. kevinushey commented on Jun 3, 2026

    @kevinushey
    Collaborator

    Thanks for the bug report! We'll take a look.

  4. added this to the Blue Plumbago milestone on Jun 4, 2026
  5. aghaynes commented on Jun 4, 2026

    @aghaynes
    Author

    Thanks @kevinushey!

  6. added theissue type on Jun 4, 2026
  7. added and removed
    new
    on Jun 4, 2026
  8. kevinushey commented on Jun 4, 2026

    @kevinushey
    Collaborator

    Fixed in #17838.

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