Skip to content

Column-names row includes in Data Viewer row count #3465

Open

Description

@ronblum

System details

RStudio Edition : Desktop & Server
RStudio Version : 1.2.956-2
OS Version      : MacOS 10.14 Mojave & Ubuntu 16.04.5 w/ Chrome
R Version       : 3.4.4 & 3.5.1

Steps to reproduce the problem

  1. View(mtcars)
  2. Make Source pane short enough so that only a few rows are displayed in the Data Viewer
  3. Scroll all the way to the bottom of the Data Viewer
  4. Shrink window so it only has enough room to show one row
  5. Scroll all the way to the bottom so that no rows are shown

Describe the problem in detail

The row count includes the column-names row in the count, so the indicator at the bottom of how many rows are displayed adds one extra.

1–5 instead of 1–4:
view_mtcars_top

30–32 instead of 31–32:
view_mtcars_bottom

33 instead of none:
view_mtcars_empty

All three misbehaviors occur in Desktop. I can only reproduce the first in Server.

Describe the behavior you expected

The column-names row should not be included in the Data Viewer's row count.

Activity

  1. added this to the v1.4 milestone on Apr 15, 2020
  2. self-assigned this
    on Apr 15, 2020
  3. R-Hannibal commented on Aug 12, 2020

    @R-Hannibal

    Verified Not Fixed on: RStudio Version - 1.4.703, R Version - 4.0.2, Windows 10 x64 - Desktop

    The issue looks mostly fixed, but in the last scenario highlighted by @ronblum, where the bottom of the dataframe is displayed as 33 of 32 entries showing, this now shows as 1 to 32 of 32 entries showing (my mind is open to the possibility that this is 'by design' behavior, but as a user I was expecting to see 'Showing 0 of 32' or something to that effect).

  4. self-assigned this
    on Aug 12, 2020
  5. modified the milestones: v1.4, Later on Aug 17, 2020
  6. removed their assignment
    on Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions