Skip to content

Do not refresh data viewer if object title is ., but open new instance instead #7737

Open

Description

@salim-b

By default, RStudio refreshes an already existing data viewer tab of the same title instead of opening a new tab. This makes sense for a normal View(mtcars) invocation but is rather unfavorable for piped usage, i.e. running different data analysis pipelines (interactively) with a %>% View() step at the end. Because when piping View(), the resulting data viewer tab is always named ..

In such cases, it would be convenient if an already existing tab wouldn't be refreshed but a new one created (manually setting View(title = "...") is tedious).

Ideally this non-refresh behaviour would be made opt-out (or opt-in) through RStudio's global options.

Addendum: This is not an issue with base R's pipe operator (|>), only with magrittr's (%>%).

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions