Skip to content

Calls to data viewer for the same object create a new tab each time #7723

Closed

Description

@ronblum

System details

RStudio Edition : Desktop and Server
RStudio Version : 1.4.765 (also 1.4.627)
OS Version      : MacOS 10.15.6 and Ubuntu 20.04
R Version       : 4.0.2

Steps to reproduce the problem

In the conosole

  1. x <- cars
  2. View(x)
  3. View(x)
  4. View(x)

Alternatively, click on x In the Environment pane multiple times.

Describe the problem in detail

Every time the data viewer is invoked, a new tab is created.

image

Describe the behavior you expected

Only one tab should be created for an object, refreshed with each call.

This is a regression, as it is not an issue in RStudio 1.3.1073 or 1.2.5040.

Activity

  1. added this to the v1.4 milestone on Sep 3, 2020
  2. self-assigned this
    on Sep 3, 2020
  3. salim-b commented on Sep 3, 2020

    @salim-b
    Contributor

    Only one tab should be created for an object, refreshed with each call.

    At this point it might be worth considering introducing an exception for this rule: When an object is named . – which is the case when piping View() – it would be convenient if an already existing tab wouldn't be refreshed but a new one created (manually setting View(title = "...") is tedious in such cases). Ideally this behaviour would be made opt-out (or opt-in) through RStudio's global options.

  4. gtritchie commented on Sep 3, 2020

    @gtritchie
    Member

    @salim-b Please open a new "enhancement" issue with your request, thanks.

  5. salim-b commented on Sep 4, 2020

    @salim-b
    Contributor

    @salim-b Please open a new "enhancement" issue with your request, thanks.

    Ok, I've opened #7737

  6. kfeinauer commented on Oct 19, 2020

    @kfeinauer
    Contributor

    Verified fixed RSP 1.4.940-1

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions